downloader: fixed a typo

release/1.0.1
obscuren 10 years ago
parent 205378016f
commit eac2df02d1
  1. 2
      eth/downloader/downloader.go

@ -311,7 +311,7 @@ out:
// 2) Measure their speed; // 2) Measure their speed;
// 3) Amount and availability. // 3) Amount and availability.
d.queue.deliver(pid, nil) d.queue.deliver(pid, nil)
if peer := p.peers[pid]; peer != nil { if peer := d.peers[pid]; peer != nil {
peer.demote() peer.demote()
} }
} }

Loading…
Cancel
Save