Commit 2d627995 authored by Péter Szilágyi's avatar Péter Szilágyi

eth/downloader: fix another rebase error

parent b40c796f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment