set dial timeout in stream

This commit is contained in:
Asim Aslam 2020-02-13 18:51:32 +00:00
parent e080ecb43a
commit d9b3b17582

View File

@ -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(),
} }