From 42c920be0782c9d32250b305a9bb69d8ed16c006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muraru=20=C8=98tefan?= Date: Wed, 28 May 2025 12:38:03 +0300 Subject: [PATCH] feat: switch state grpc client to NewClient rather than Dial --- state/client.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/state/client.go b/state/client.go index 83b96ec3e8..c9247778cc 100644 --- a/state/client.go +++ b/state/client.go @@ -59,9 +59,7 @@ func NewConnectedClientWithOptions(ctx context.Context, backendOpts *plugin.Back return &NoOpClient{}, nil } - // TODO: Remove once there's a documented migration path per https://github.com/grpc/grpc-go/issues/7244 - // nolint:staticcheck - backendConn, err := grpc.DialContext(ctx, backendOpts.Connection, + backendConn, err := grpc.NewClient(backendOpts.Connection, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithDefaultCallOptions( grpc.MaxCallRecvMsgSize(connOpts.MaxMsgSizeInBytes),