Merge pull request #4447 from kzys/grpc-error

client: surface a connection error more clearly
This commit is contained in:
Phil Estes 2021-07-12 15:12:06 -04:00 committed by GitHub
commit cbdebd18eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,7 @@ func New(address string, opts ...ClientOpt) (*Client, error) {
grpc.FailOnNonTempDialError(true),
grpc.WithConnectParams(connParams),
grpc.WithContextDialer(dialer.ContextDialer),
grpc.WithReturnConnectionError(),
// TODO(stevvooe): We may need to allow configuration of this on the client.
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(defaults.DefaultMaxRecvMsgSize)),