From d72c3f535dd72f8c2ea2152c221a9f52e02ff60e Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Wed, 31 Jan 2018 14:12:10 +0100 Subject: [PATCH] store: fix etcdv3 election get leader timeout requestTimeout wasn't set. --- pkg/store/store.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/store/store.go b/pkg/store/store.go index 96f308b68..3632e4426 100644 --- a/pkg/store/store.go +++ b/pkg/store/store.go @@ -227,10 +227,11 @@ func NewElection(kvStore KVStore, path, candidateUID string) Election { case *etcdV3Store: etcdV3Store := kvStore.(*etcdV3Store) return &etcdv3Election{ - c: etcdV3Store.c, - path: path, - candidateUID: candidateUID, - ttl: MinTTL, + c: etcdV3Store.c, + path: path, + candidateUID: candidateUID, + ttl: MinTTL, + requestTimeout: cluster.DefaultStoreTimeout, } default: panic("unknown kvstore")