1
This commit is contained in:
parent
f07ac19f0a
commit
2572736f6b
14
server/imserver_new/cache/cachemgr.go
vendored
14
server/imserver_new/cache/cachemgr.go
vendored
@ -105,13 +105,15 @@ func (this *cacheMgr) internalGetUsers(accountIds []string, cb func(int32, strin
|
||||
subTask.SetFail()
|
||||
return
|
||||
}
|
||||
accountId := ds.GetByName("account_id")
|
||||
u := this.getUser(accountId)
|
||||
if u == nil {
|
||||
u = newUserProfile()
|
||||
if ds.Next() {
|
||||
accountId := ds.GetByName("account_id")
|
||||
u := this.getUser(accountId)
|
||||
if u == nil {
|
||||
u = newUserProfile()
|
||||
}
|
||||
u.loadFromDb(ds)
|
||||
this.userHash[u.accountId] = u
|
||||
}
|
||||
u.loadFromDb(ds)
|
||||
this.userHash[u.accountId] = u
|
||||
if i + 1 < len(keys) {
|
||||
i++
|
||||
subTask.Continue()
|
||||
|
Loading…
x
Reference in New Issue
Block a user