mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 23:53:12 +08:00
14 lines
221 B
Go
14 lines
221 B
Go
package cluster
|
|
|
|
// followerLoop is run by every follower node in the cluster.
|
|
func (c *cluster) followerLoop(stopCh chan struct{}) {
|
|
for {
|
|
select {
|
|
case <-stopCh:
|
|
return
|
|
case <-c.shutdownCh:
|
|
return
|
|
}
|
|
}
|
|
}
|