Move consts to const pkg

Should move leadership bits to own pkg?
This commit is contained in:
Alex Vest
2022-10-04 16:41:34 +01:00
parent 7f9f32ca58
commit 401d4227d1
3 changed files with 20 additions and 16 deletions
+1
View File
@@ -177,4 +177,5 @@ func (c *Controller) handleErr(err error, key interface{}) {
func (c *Controller) SetLeader(isLeader bool) {
c.isLeader = isLeader
logrus.Info("controller active")
}