mirror of https://github.com/docker/docs.git
leadership: Fix README
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
3f01413b75
commit
a81c5436bb
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue