From c3f61e7c85951128600b9bf766a3218de3ae58cd Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 16 May 2023 15:48:40 +0300 Subject: [PATCH] [#30] client: drop keepalive options Node doesn't use any specific settings, these setting should be provided by the caller. Signed-off-by: Evgenii Stratonikov --- rpc/client/options.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/rpc/client/options.go b/rpc/client/options.go index 005594c..0575dfc 100644 --- a/rpc/client/options.go +++ b/rpc/client/options.go @@ -6,7 +6,6 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" - "google.golang.org/grpc/keepalive" ) const ( @@ -30,9 +29,8 @@ type cfg struct { } const ( - defaultDialTimeout = 5 * time.Second - defaultKeepAliveTimeout = 5 * time.Second - defaultRWTimeout = 1 * time.Minute + defaultDialTimeout = 5 * time.Second + defaultRWTimeout = 1 * time.Minute ) func (c *cfg) initDefault() { @@ -41,9 +39,6 @@ func (c *cfg) initDefault() { c.grpcDialOpts = []grpc.DialOption{ grpc.WithBlock(), grpc.WithTransportCredentials(insecure.NewCredentials()), - grpc.WithKeepaliveParams(keepalive.ClientParameters{ - Timeout: defaultKeepAliveTimeout, - }), } }