mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-09 20:59:02 +00:00
eth/downloader: fix another rebase error
This commit is contained in:
parent
b40c796ff7
commit
2d627995cf
1 changed files with 1 additions and 2 deletions
|
|
@ -230,8 +230,7 @@ func (q *queue) Reserve(p *peer, count int) *fetchRequest {
|
|||
send := make(map[common.Hash]int)
|
||||
skip := make(map[common.Hash]int)
|
||||
|
||||
capacity := p.Capacity()
|
||||
for proc := 0; proc < space && len(send) < capacity && !q.hashQueue.Empty(); proc++ {
|
||||
for proc := 0; proc < space && len(send) < count && !q.hashQueue.Empty(); proc++ {
|
||||
hash, priority := q.hashQueue.Pop()
|
||||
if p.ignored.Has(hash) {
|
||||
skip[hash.(common.Hash)] = int(priority)
|
||||
|
|
|
|||
Loading…
Reference in a new issue