@@ -275,14 +275,10 @@ func makeConnection(ctx context.Context, id string, params client.BootstrapParam
275275
276276 return ttrpc .NewClient (conn , ttrpc .WithOnClose (onClose )), nil
277277 case "grpc" :
278- ctx , cancel := context .WithTimeout (ctx , time .Second * 100 )
279- defer cancel ()
280-
281278 gopts := []grpc.DialOption {
282279 grpc .WithTransportCredentials (insecure .NewCredentials ()),
283- grpc .WithBlock (),
284280 }
285- return grpcDialContext (ctx , params .Address , onClose , gopts ... )
281+ return grpcDialContext (params .Address , onClose , gopts ... )
286282 default :
287283 return nil , fmt .Errorf ("unexpected protocol: %q" , params .Protocol )
288284 }
@@ -292,7 +288,6 @@ func makeConnection(ctx context.Context, id string, params client.BootstrapParam
292288// so we can have something similar to ttrpc.WithOnClose to have
293289// a callback run when the connection is severed or explicitly closed.
294290func grpcDialContext (
295- ctx context.Context ,
296291 address string ,
297292 onClose func (),
298293 gopts ... grpc.DialOption ,
@@ -316,7 +311,7 @@ func grpcDialContext(
316311 conn .Close ()
317312
318313 target := dialer .DialAddress (address )
319- client , err := grpc .DialContext ( ctx , target , gopts ... )
314+ client , err := grpc .NewClient ( target , gopts ... )
320315 if err != nil {
321316 return nil , fmt .Errorf ("failed to create GRPC connection: %w" , err )
322317 }
0 commit comments