functional: fix "unconvert" warnings

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-04-30 14:10:44 -07:00
parent 53ade5e872
commit 78d0c8426e

View File

@ -47,7 +47,7 @@ type roundClient struct {
func newClient(eps []string, timeout time.Duration) *clientv3.Client {
c, err := clientv3.New(clientv3.Config{
Endpoints: eps,
DialTimeout: time.Duration(timeout) * time.Second,
DialTimeout: timeout * time.Second,
})
if err != nil {
log.Fatal(err)