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