feature/balance #3
@ -27,6 +27,7 @@ func NewPoll(serverList []*define.ServerNode) (IBalance, error) {
|
|||||||
return &Poll{
|
return &Poll{
|
||||||
base: base{
|
base: base{
|
||||||
lock: &sync.RWMutex{},
|
lock: &sync.RWMutex{},
|
||||||
|
severList: serverList,
|
||||||
},
|
},
|
||||||
currentServerIndex: 0,
|
currentServerIndex: 0,
|
||||||
}, nil
|
}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user