Skip to content

Commit 5728b67

Browse files
author
Aaron Chen
committed
Fix Fault Tolerance section code example without ttl
Signed-off-by: Aaron Chen <[email protected]>
1 parent 3cf44b5 commit 5728b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leadership/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func participate() {
7777
}
7878

7979
waitTime := 10 * time.Second
80-
underwood := leadership.NewCandidate(client, "service/swarm/leader", "underwood")
80+
underwood := leadership.NewCandidate(client, "service/swarm/leader", "underwood", 15*time.Second)
8181

8282
go func() {
8383
for {

0 commit comments

Comments
 (0)