From afa37a2ba794132a3dd5a8151e7458b5e5bf36c8 Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Wed, 30 Oct 2024 13:00:31 +0100 Subject: [PATCH] [-] decrease dial keep-alive timeouts, closes #266 --- checker/etcd_leader_checker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checker/etcd_leader_checker.go b/checker/etcd_leader_checker.go index 2b28bab..cd23c1a 100644 --- a/checker/etcd_leader_checker.go +++ b/checker/etcd_leader_checker.go @@ -28,8 +28,8 @@ func NewEtcdLeaderChecker(conf *vipconfig.Config) (*EtcdLeaderChecker, error) { cfg := clientv3.Config{ Endpoints: conf.Endpoints, TLS: tlsConfig, - DialKeepAliveTimeout: 5 * time.Second, - DialKeepAliveTime: 5 * time.Second, + DialKeepAliveTimeout: time.Second, + DialKeepAliveTime: time.Second, Username: conf.EtcdUser, Password: conf.EtcdPassword, }