set dial timeout in stream
This commit is contained in:
parent
978659a441
commit
5657fd07d2
1
grpc.go
1
grpc.go
@ -189,6 +189,7 @@ func (g *grpcClient) stream(ctx context.Context, node *registry.Node, req client
|
|||||||
|
|
||||||
grpcDialOptions := []grpc.DialOption{
|
grpcDialOptions := []grpc.DialOption{
|
||||||
grpc.WithDefaultCallOptions(grpc.ForceCodec(wc)),
|
grpc.WithDefaultCallOptions(grpc.ForceCodec(wc)),
|
||||||
|
grpc.WithTimeout(opts.DialTimeout),
|
||||||
g.secure(),
|
g.secure(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user