Skip to content

Commit d667c22

Browse files
committed
Fixed comment for connect() return.
Agent connect() does not return the server id. It returned the number of servers we should connect to.
1 parent eb2aa88 commit d667c22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/agent/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ func newAgentClient(address, agentID, agentIdentifiers string, cs *ClientSet, op
174174
return a, serverCount, nil
175175
}
176176

177-
// Connect makes the grpc dial to the proxy server. It returns the serverID
178-
// it connects to.
177+
// Connect makes the grpc dial to the proxy server. It returns the count
178+
// of the number of servers this agent should connected to.
179179
func (a *Client) Connect() (int, error) {
180180
conn, err := grpc.Dial(a.address, a.opts...)
181181
if err != nil {

0 commit comments

Comments
 (0)