Files
core/cluster/follower.go
2023-05-11 12:09:04 +02:00

15 lines
277 B
Go

package cluster
// followerLoop is run by every follower node in the cluster.
func (c *cluster) followerLoop(stopCh chan struct{}) {
// Periodically reconcile as long as we are the leader
for {
select {
case <-stopCh:
return
case <-c.shutdownCh:
return
}
}
}