Skip to content

Commit afa37a2

Browse files
committed
[-] decrease dial keep-alive timeouts, closes #266
1 parent 8aef662 commit afa37a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checker/etcd_leader_checker.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func NewEtcdLeaderChecker(conf *vipconfig.Config) (*EtcdLeaderChecker, error) {
2828
cfg := clientv3.Config{
2929
Endpoints: conf.Endpoints,
3030
TLS: tlsConfig,
31-
DialKeepAliveTimeout: 5 * time.Second,
32-
DialKeepAliveTime: 5 * time.Second,
31+
DialKeepAliveTimeout: time.Second,
32+
DialKeepAliveTime: time.Second,
3333
Username: conf.EtcdUser,
3434
Password: conf.EtcdPassword,
3535
}

0 commit comments

Comments
 (0)