(run func(context.Context))
| 13 | } |
| 14 | |
| 15 | func newLeaderOnlyLoop(run func(context.Context)) *leaderOnlyLoop { |
| 16 | return &leaderOnlyLoop{run: run} |
| 17 | } |
| 18 | |
| 19 | func (l *leaderOnlyLoop) onStartedLeading(ctx context.Context) { |
| 20 | if l == nil || l.run == nil { |
no outgoing calls