Add `WithDisableRetry`

This commit is contained in:
hmol233 2021-06-13 14:34:19 +08:00
parent ba4aa2896d
commit dee122c5f3
No known key found for this signature in database
GPG Key ID: D617A9DAB0C992D5

View File

@ -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