From 117611a170668101a8b60de0e0dc0f60e28afee1 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Fri, 21 Apr 2023 11:15:05 +0800 Subject: [PATCH] fix: default value for keepalive set to 0 (#3152) --- zrpc/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zrpc/config.go b/zrpc/config.go index 80f3bd2e..afbb4882 100644 --- a/zrpc/config.go +++ b/zrpc/config.go @@ -27,7 +27,7 @@ type ( Token string `json:",optional"` NonBlock bool `json:",optional"` Timeout int64 `json:",default=2000"` - KeepaliveTime time.Duration `json:",default=20s"` + KeepaliveTime time.Duration `json:",optional"` Middlewares ClientMiddlewaresConf }