aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-17 06:11:41 +0800
committerobscuren <geffobscura@gmail.com>2015-04-17 06:11:45 +0800
commiteac2df02d17f9a2a42310b8d6580dd5bea53a48e (patch)
tree2a528921d9774b75cf20d400f3893c333b28aed6
parent205378016fc342a9ee683b3d040b3e7d0e2ebb51 (diff)
downloadgo-tangerine-eac2df02d17f9a2a42310b8d6580dd5bea53a48e.tar
go-tangerine-eac2df02d17f9a2a42310b8d6580dd5bea53a48e.tar.gz
go-tangerine-eac2df02d17f9a2a42310b8d6580dd5bea53a48e.tar.bz2
go-tangerine-eac2df02d17f9a2a42310b8d6580dd5bea53a48e.tar.lz
go-tangerine-eac2df02d17f9a2a42310b8d6580dd5bea53a48e.tar.xz
go-tangerine-eac2df02d17f9a2a42310b8d6580dd5bea53a48e.tar.zst
go-tangerine-eac2df02d17f9a2a42310b8d6580dd5bea53a48e.zip
downloader: fixed a typo
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 91cc65249..4e795af6d 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -311,7 +311,7 @@ out:
// 2) Measure their speed;
// 3) Amount and availability.
d.queue.deliver(pid, nil)
- if peer := p.peers[pid]; peer != nil {
+ if peer := d.peers[pid]; peer != nil {
peer.demote()
}
}