Skip to content

Commit

Permalink
Merge pull request #200 from cole-miller/break
Browse files Browse the repository at this point in the history
app: Don't transfer leadership more than once
  • Loading branch information
Mathieu Borderé authored Sep 7, 2022
2 parents c369c2c + 59daba5 commit c510f9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ func (a *App) Handover(ctx context.Context) error {
return fmt.Errorf("find new leader: %w", err)
}
defer cli.Close()
break
}
}

Expand Down

0 comments on commit c510f9c

Please sign in to comment.