Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9a70bb

Browse files
committed
Merge pull requestsorintlab#426 from sgotti/fix_etcdv3_getleader_timeout
store: fix etcdv3 election get leader timeout
2 parents90a16f5 +d72c3f5 commitc9a70bb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎pkg/store/store.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,11 @@ func NewElection(kvStore KVStore, path, candidateUID string) Election {
227227
case*etcdV3Store:
228228
etcdV3Store:=kvStore.(*etcdV3Store)
229229
return&etcdv3Election{
230-
c:etcdV3Store.c,
231-
path:path,
232-
candidateUID:candidateUID,
233-
ttl:MinTTL,
230+
c:etcdV3Store.c,
231+
path:path,
232+
candidateUID:candidateUID,
233+
ttl:MinTTL,
234+
requestTimeout:cluster.DefaultStoreTimeout,
234235
}
235236
default:
236237
panic("unknown kvstore")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp