From dee122c5f3a9da7ed3963497d03a2e47f3cf4ad4 Mon Sep 17 00:00:00 2001 From: hmol233 <82594500+hmol233@users.noreply.github.com> Date: Sun, 13 Jun 2021 14:34:19 +0800 Subject: [PATCH] Add `WithDisableRetry` --- transport/internet/grpc/dial.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/internet/grpc/dial.go b/transport/internet/grpc/dial.go index f1927178..ebef00fc 100644 --- a/transport/internet/grpc/dial.go +++ b/transport/internet/grpc/dial.go @@ -132,6 +132,7 @@ func getGrpcClient(ctx context.Context, dest net.Destination, tlsConfig *tls.Con }), grpc.WithBlock(), grpc.WithReturnConnectionError(), + grpc.WithDisableRetry(), ) globalDialerMap[dialerConf{dest, sockopt, tlsConfig}] = conn return conn, err