From 376f3dfb23233c47bcd1e0f433a4c5b5fa2aeef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 22 Nov 2021 17:21:41 +0800 Subject: [PATCH] update --- balance/poll.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/balance/poll.go b/balance/poll.go index 17368c3..aea081a 100644 --- a/balance/poll.go +++ b/balance/poll.go @@ -26,7 +26,8 @@ func NewPoll(serverList []*define.ServerNode) (IBalance, error) { } return &Poll{ base: base{ - lock: &sync.RWMutex{}, + lock: &sync.RWMutex{}, + severList: serverList, }, currentServerIndex: 0, }, nil