From d8bbe7ddaae0b9298802f4b4df481f62faf7f553 Mon Sep 17 00:00:00 2001 From: yuzuki999 Date: Mon, 6 Jun 2022 10:08:02 +0800 Subject: [PATCH] fix update inbound failed --- service/controller/controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/controller/controller.go b/service/controller/controller.go index 88f849a..85f98f7 100644 --- a/service/controller/controller.go +++ b/service/controller/controller.go @@ -193,18 +193,18 @@ func (c *Controller) nodeInfoMonitor() (err error) { if newUserInfo != nil { c.userList = newUserInfo } - err = c.addNewUser(newUserInfo, newNodeInfo) + newUserInfo = nil + err = c.addNewUser(c.userList, newNodeInfo) if err != nil { log.Print(err) return nil } newNodeInfo = nil // Add Limiter - if err := c.AddInboundLimiter(c.Tag, newUserInfo); err != nil { + if err := c.AddInboundLimiter(c.Tag, c.userList); err != nil { log.Print(err) return nil } - newUserInfo = nil runtime.GC() } else if newUserInfo != nil { deleted, added := compareUserList(c.userList, newUserInfo)