diff options
author | ferhat elmas <elmas.ferhat@gmail.com> | 2017-11-08 18:45:52 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-11-08 18:45:52 +0800 |
commit | 9619a610248e9630968ba1d9be8e214b645c9c55 (patch) | |
tree | 5844cfbee9a0ac5750dcc803cea461f75969f74e /les/distributor.go | |
parent | bfdc0fa3622d7c3b421d2f5a6dda5746be41bfde (diff) | |
download | dexon-9619a610248e9630968ba1d9be8e214b645c9c55.tar dexon-9619a610248e9630968ba1d9be8e214b645c9c55.tar.gz dexon-9619a610248e9630968ba1d9be8e214b645c9c55.tar.bz2 dexon-9619a610248e9630968ba1d9be8e214b645c9c55.tar.lz dexon-9619a610248e9630968ba1d9be8e214b645c9c55.tar.xz dexon-9619a610248e9630968ba1d9be8e214b645c9c55.tar.zst dexon-9619a610248e9630968ba1d9be8e214b645c9c55.zip |
all: gofmt -w -s (#15419)
Diffstat (limited to 'les/distributor.go')
-rw-r--r-- | les/distributor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/les/distributor.go b/les/distributor.go index e8ef5b02e..159fa4c73 100644 --- a/les/distributor.go +++ b/les/distributor.go @@ -191,7 +191,7 @@ func (d *requestDistributor) nextRequest() (distPeer, *distReq, time.Duration) { for (len(d.peers) > 0 || elem == d.reqQueue.Front()) && elem != nil { req := elem.Value.(*distReq) canSend := false - for peer, _ := range d.peers { + for peer := range d.peers { if _, ok := checkedPeers[peer]; !ok && peer.canQueue() && req.canSend(peer) { canSend = true cost := req.getCost(peer) |