mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: fixed freeClientPool test
This commit is contained in:
parent
b3f60e4ab7
commit
98228dcab0
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ func (f *freeClientPool) connect(address, id string) bool {
|
||||||
}
|
}
|
||||||
f.disconnPool.Remove(e.index)
|
f.disconnPool.Remove(e.index)
|
||||||
e.connected = true
|
e.connected = true
|
||||||
|
e.id = id
|
||||||
f.connPool.Push(e, e.linUsage)
|
f.connPool.Push(e, e.linUsage)
|
||||||
if f.connPool.Size()+f.disconnPool.Size() > f.totalLimit {
|
if f.connPool.Size()+f.disconnPool.Size() > f.totalLimit {
|
||||||
f.disconnPool.Pop()
|
f.disconnPool.Pop()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue