leadership: Fix README

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-05-20 13:58:27 -07:00
parent 3f01413b75
commit a81c5436bb
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if err != nil {
underwood := leadership.NewCandidate(client, "service/swarm/leader", "underwood")
underwood.RunForElection()
for elected := range candidate.ElectedCh {
for elected := range underwood.ElectedCh {
// This loop will run every time there is a change in our leadership
// status.