Browse Source

Merge pull request #8122 from yudai/fast_fail_proxy

grpcproxy: Disable fast fail on lease grant call to cluster
Xiang Li 8 years ago
parent
commit
a65e3c69a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      proxy/grpcproxy/lease.go

+ 1 - 1
proxy/grpcproxy/lease.go

@@ -73,7 +73,7 @@ func NewLeaseProxy(c *clientv3.Client) (pb.LeaseServer, <-chan struct{}) {
 }
 }
 
 
 func (lp *leaseProxy) LeaseGrant(ctx context.Context, cr *pb.LeaseGrantRequest) (*pb.LeaseGrantResponse, error) {
 func (lp *leaseProxy) LeaseGrant(ctx context.Context, cr *pb.LeaseGrantRequest) (*pb.LeaseGrantResponse, error) {
-	rp, err := lp.leaseClient.LeaseGrant(ctx, cr)
+	rp, err := lp.leaseClient.LeaseGrant(ctx, cr, grpc.FailFast(false))
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}