fix load balance bug

This commit is contained in:
AJ ONeal 2020-07-15 11:00:21 +00:00
parent ff231391d3
commit 9648cd03cf
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ func GetServer(servername string) (*SubscriberConn, bool) {
myLoad := 0
mySrv := v.(*SubscriberConn)
mySrv.Clients.Range(func(k, v interface{}) bool {
load += 1
myLoad += 1
return true
})
// pick the least loaded server