From f465d63b5d3577052243c5c24668d0f40930a923 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 19 Feb 2021 03:37:29 -0800 Subject: [PATCH] grpc should fail when heart beating to master fix https://github.com/chrislusf/seaweedfs/issues/1820 --- weed/pb/grpc_client_server.go | 1 - 1 file changed, 1 deletion(-) 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