Skip to content

Commit

Permalink
Merge pull request #426 from sgotti/fix_etcdv3_getleader_timeout
Browse files Browse the repository at this point in the history
store: fix etcdv3 election get leader timeout
  • Loading branch information
sgotti committed Jan 31, 2018
2 parents 90a16f5 + d72c3f5 commit c9a70bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c9a70bb

Please sign in to comment.