MCPcopy Create free account
hub / github.com/PostHog/duckgres / newLeaderOnlyLoop

Function newLeaderOnlyLoop

controlplane/leader_loop.go:15–17  ·  view source on GitHub ↗
(run func(context.Context))

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls