diff --git a/rpc/grpcclientidentity/grpchelper/authlistener_grpc_adaptor_wrapper.go b/rpc/grpcclientidentity/grpchelper/authlistener_grpc_adaptor_wrapper.go index 1b9f3a2..777bb81 100644 --- a/rpc/grpcclientidentity/grpchelper/authlistener_grpc_adaptor_wrapper.go +++ b/rpc/grpcclientidentity/grpchelper/authlistener_grpc_adaptor_wrapper.go @@ -36,9 +36,7 @@ func ClientConn(cn transport.Connecter, log Logger) *grpc.ClientConn { }) dialerOption := grpc.WithDialer(grpcclientidentity.NewDialer(log, cn)) cred := grpc.WithTransportCredentials(grpcclientidentity.NewTransportCredentials(log)) - ctx, cancel := context.WithTimeout(context.TODO(), 5*time.Second) // FIXME constant - defer cancel() - cc, err := grpc.DialContext(ctx, "doesn't matter done by dialer", dialerOption, cred, ka) + cc, err := grpc.DialContext(context.Background(), "doesn't matter done by dialer", dialerOption, cred, ka) if err != nil { log.WithError(err).Error("cannot create gRPC client conn (non-blocking)") // It's ok to panic here: the we call grpc.DialContext without the