Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rakesh-garimella committed Jan 10, 2025
1 parent ab29ff9 commit d0cda8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions extension/leaderelector/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ type leaderElectionExtension struct {
}

// If the receiver sets a callback function then it would be invoked when the leader wins the election
// additionally set iamLeader to true
func (lee *leaderElectionExtension) startedLeading(ctx context.Context) {
for _, callback := range lee.onStartedLeading {
callback(ctx)
}
}

// If the receiver sets a callback function then it would be invoked when the leader loss the election
// additionally set iamLeader to false
func (lee *leaderElectionExtension) stoppedLeading() {
for _, callback := range lee.onStoppedLeading {
callback()
Expand Down

0 comments on commit d0cda8b

Please sign in to comment.