You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -89,9 +89,9 @@ func (o *GrpcProxyAgentOptions) Flags() *pflag.FlagSet {
89
89
flags.StringVar(&o.proxyServerHost, "proxy-server-host", o.proxyServerHost, "The hostname to use to connect to the proxy-server.")
90
90
flags.IntVar(&o.proxyServerPort, "proxy-server-port", o.proxyServerPort, "The port the proxy server is listening on.")
91
91
flags.StringVar(&o.agentID, "agent-id", o.agentID, "The unique ID of this agent. Default to a generated uuid if not set.")
92
-
flags.IntVar(&o.syncInterval, "sync-interval", o.syncInterval, "The seconds by which the agent periodically checks that it has connections to all instances of the proxy server.")
93
-
flags.IntVar(&o.probeInterval, "probe-interval", o.probeInterval, "The seconds by which the agent periodically checks if its connections to the proxy server are ready.")
94
-
flags.IntVar(&o.reconnectInterval, "reconnect-interval", o.reconnectInterval, "The seconds by which the agent tries to reconnect.")
92
+
flags.DurationVar(&o.syncInterval, "sync-interval", o.syncInterval, "The interval by which the agent periodically checks that it has connections to all instances of the proxy server.")
93
+
flags.DurationVar(&o.probeInterval, "probe-interval", o.probeInterval, "The interval by which the agent periodically checks if its connections to the proxy server are ready.")
94
+
flags.DurationVar(&o.reconnectInterval, "reconnect-interval", o.reconnectInterval, "The interval by which the agent tries to reconnect.")
95
95
returnflags
96
96
}
97
97
@@ -102,9 +102,9 @@ func (o *GrpcProxyAgentOptions) Print() {
102
102
klog.Warningf("ProxyServerHost set to \"%s\".\n", o.proxyServerHost)
103
103
klog.Warningf("ProxyServerPort set to %d.\n", o.proxyServerPort)
104
104
klog.Warningf("AgentID set to %s.\n", o.agentID)
105
-
klog.Warningf("SyncInterval set to %d seconds.\n", o.syncInterval)
106
-
klog.Warningf("ProbeInterval set to %d.\n", o.probeInterval)
107
-
klog.Warningf("ReconnectInterval set to %d.\n", o.reconnectInterval)
105
+
klog.Warningf("SyncInterval set to %v.\n", o.syncInterval)
106
+
klog.Warningf("ProbeInterval set to %v.\n", o.probeInterval)
107
+
klog.Warningf("ReconnectInterval set to %v.\n", o.reconnectInterval)
0 commit comments