fixed kv errors
This commit is contained in:
parent
5bb67f7922
commit
ab12dd67d4
4 changed files with 16 additions and 15 deletions
|
|
@ -45,8 +45,8 @@ func NewLBController(cfg *config.Config, srv *api.Server, log logr.Logger) (call
|
|||
for {
|
||||
cc.Info("leading", "id", cc.ID())
|
||||
ips, err := db.GetIPs()
|
||||
if err != nil {
|
||||
cc.Error(err, "error updating haproxy config")
|
||||
if err != nil && err != cluster.ErrPrefixNotFound {
|
||||
cc.Error(err, "error reading ip list")
|
||||
<-t.C
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue