Skip to content

Commit

Permalink
Leave GRPC client trying to connect to the added server, fixes #94
Browse files Browse the repository at this point in the history
  • Loading branch information
felipejfc committed Apr 28, 2019
1 parent aa452e1 commit b92161d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cluster/grpc_rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ func (gs *GRPCClient) AddServer(sv *Server) {
}

address := fmt.Sprintf("%s:%s", host, port)
ctxT, done := context.WithTimeout(context.Background(), gs.dialTimeout)
defer done()
conn, err := grpc.DialContext(ctxT, address, grpc.WithInsecure())
conn, err := grpc.Dial(address, grpc.WithInsecure())
if err != nil {
logger.Log.Errorf("unable to connect to server %s at %s: %v", sv.ID, address, err)
return
Expand Down

0 comments on commit b92161d

Please sign in to comment.