mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: priority client info bugfix
This commit is contained in:
parent
313e17bffc
commit
3ef504d185
1 changed files with 5 additions and 3 deletions
|
|
@ -97,9 +97,11 @@ func (api *PrivateLightServerAPI) PriorityClientInfo(start, stop enode.ID, maxCo
|
|||
res[ids[maxCount]] = make(map[string]interface{})
|
||||
ids = ids[:maxCount]
|
||||
}
|
||||
api.server.clientPool.forClients(ids, func(client *clientInfo, id enode.ID) {
|
||||
res[id] = api.clientInfo(client, id)
|
||||
})
|
||||
if len(ids) != 0 {
|
||||
api.server.clientPool.forClients(ids, func(client *clientInfo, id enode.ID) {
|
||||
res[id] = api.clientInfo(client, id)
|
||||
})
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue