diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-10-28 20:39:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-28 20:39:56 -0700 |
| commit | 8a55b7053f33e9135100a6667ded6ed1f845b801 (patch) | |
| tree | 0233c6a487fa2becc68cb4ddb52f39a28913098d | |
| parent | 6364d59f9227637c887dfc1636b725740f57ad4e (diff) | |
| parent | 918546bbdb2054fbe8c0016c757fc73d03758fcd (diff) | |
| download | seaweedfs-8a55b7053f33e9135100a6667ded6ed1f845b801.tar.xz seaweedfs-8a55b7053f33e9135100a6667ded6ed1f845b801.zip | |
Merge pull request #1577 from kmlebedev/grpc_waitforeeady
add WaitForReady to grpc DialOption. this will affect all grpc calls. Not quite sure about the possible effects. let's see.
| -rw-r--r-- | weed/pb/grpc_client_server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/pb/grpc_client_server.go b/weed/pb/grpc_client_server.go index ce706e282..f19af43b2 100644 --- a/weed/pb/grpc_client_server.go +++ b/weed/pb/grpc_client_server.go @@ -62,6 +62,7 @@ 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 |
