les: fix clientInfo deadlock (#20395)
This commit is contained in:
parent
2e98706a99
commit
878e35bfde
@ -108,7 +108,7 @@ func (api *PrivateLightServerAPI) clientInfo(c *clientInfo, id enode.ID) map[str
|
|||||||
info["priority"] = pb != 0
|
info["priority"] = pb != 0
|
||||||
} else {
|
} else {
|
||||||
info["isConnected"] = false
|
info["isConnected"] = false
|
||||||
pb := api.server.clientPool.getPosBalance(id)
|
pb := api.server.clientPool.ndb.getOrNewPB(id)
|
||||||
info["pricing/balance"], info["pricing/balanceMeta"] = pb.value, pb.meta
|
info["pricing/balance"], info["pricing/balanceMeta"] = pb.value, pb.meta
|
||||||
info["priority"] = pb.value != 0
|
info["priority"] = pb.value != 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user