Merge pull request #1007 from dmcgowan/with-block-fast-fail
Add with block and fail on non-temp dial error
This commit is contained in:
@@ -68,9 +68,11 @@ func New(address string, opts ...ClientOpt) (*Client, error) {
|
||||
}
|
||||
|
||||
gopts := []grpc.DialOption{
|
||||
grpc.WithBlock(),
|
||||
grpc.WithInsecure(),
|
||||
grpc.WithTimeout(100 * time.Second),
|
||||
grpc.WithDialer(dialer),
|
||||
grpc.FailOnNonTempDialError(true),
|
||||
}
|
||||
if copts.defaultns != "" {
|
||||
unary, stream := newNSInterceptors(copts.defaultns)
|
||||
|
||||
Reference in New Issue
Block a user