From 5728b670ae71ababc31b4b6487eb5a72f0bd02dd Mon Sep 17 00:00:00 2001 From: Aaron Chen Date: Wed, 30 Dec 2015 03:08:09 +0800 Subject: [PATCH] Fix Fault Tolerance section code example without ttl Signed-off-by: Aaron Chen --- leadership/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leadership/README.md b/leadership/README.md index bc5c45cdee..8b33c2a31b 100644 --- a/leadership/README.md +++ b/leadership/README.md @@ -77,7 +77,7 @@ func participate() { } waitTime := 10 * time.Second - underwood := leadership.NewCandidate(client, "service/swarm/leader", "underwood") + underwood := leadership.NewCandidate(client, "service/swarm/leader", "underwood", 15*time.Second) go func() { for {