From 1fff4bbd5bbed126e346cad4d24fae83959ec26c Mon Sep 17 00:00:00 2001 From: Samuel Stauffer Date: Wed, 10 Dec 2014 12:09:45 -0800 Subject: [PATCH] Very minor cleanup --- zk/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zk/conn.go b/zk/conn.go index efffe706..d49d07f8 100644 --- a/zk/conn.go +++ b/zk/conn.go @@ -141,7 +141,7 @@ func ConnectWithDialer(servers []string, sessionTimeout time.Duration, dialer Di eventChan: ec, shouldQuit: make(chan bool), recvTimeout: recvTimeout, - pingInterval: time.Duration((int64(recvTimeout) / 2)), + pingInterval: recvTimeout / 2, connectTimeout: 1 * time.Second, sendChan: make(chan *request, sendChanSize), requests: make(map[int32]*request),