Fix Fault Tolerance section code example without ttl

Signed-off-by: Aaron Chen <aaron.chen@curiositychina.com>
This commit is contained in:
Aaron Chen 2015-12-30 03:08:09 +08:00
parent 3cf44b5b24
commit 5728b670ae
1 changed files with 1 additions and 1 deletions

View File

@ -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 {