aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-19 03:37:29 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-19 03:37:29 -0800
commitf465d63b5d3577052243c5c24668d0f40930a923 (patch)
treea83dd2bc38bed50df4f8ae213a2426d9d88040cb
parent60d7b809c14e2f5b903a704fbc2c9ed16948248e (diff)
downloadseaweedfs-f465d63b5d3577052243c5c24668d0f40930a923.tar.xz
seaweedfs-f465d63b5d3577052243c5c24668d0f40930a923.zip
grpc should fail when heart beating to master
fix https://github.com/chrislusf/seaweedfs/issues/1820
-rw-r--r--weed/pb/grpc_client_server.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.go
index ec49d177b..910114313 100644
--- a/weed/pb/grpc_client_server.go
+++ b/weed/pb/grpc_client_server.go
@@ -64,7 +64,6 @@ func GrpcDial(ctx context.Context, address string, opts ...grpc.DialOption) (*gr
grpc.WithDefaultCallOptions(
grpc.MaxCallSendMsgSize(Max_Message_Size),
grpc.MaxCallRecvMsgSize(Max_Message_Size),
- grpc.WaitForReady(true),
),
grpc.WithKeepaliveParams(keepalive.ClientParameters{
Time: 30 * time.Second, // client ping server if no activity for this long