mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add WaitForReady to grpc DialOption
This commit is contained in:
parent
6364d59f92
commit
918546bbdb
|
@ -62,6 +62,7 @@ func GrpcDial(ctx context.Context, address string, opts ...grpc.DialOption) (*gr
|
||||||
grpc.WithDefaultCallOptions(
|
grpc.WithDefaultCallOptions(
|
||||||
grpc.MaxCallSendMsgSize(Max_Message_Size),
|
grpc.MaxCallSendMsgSize(Max_Message_Size),
|
||||||
grpc.MaxCallRecvMsgSize(Max_Message_Size),
|
grpc.MaxCallRecvMsgSize(Max_Message_Size),
|
||||||
|
grpc.WaitForReady(true),
|
||||||
),
|
),
|
||||||
grpc.WithKeepaliveParams(keepalive.ClientParameters{
|
grpc.WithKeepaliveParams(keepalive.ClientParameters{
|
||||||
Time: 30 * time.Second, // client ping server if no activity for this long
|
Time: 30 * time.Second, // client ping server if no activity for this long
|
||||||
|
|
Loading…
Reference in a new issue