aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/hive.go
diff options
context:
space:
mode:
authorViktor TrĂ³n <viktor.tron@gmail.com>2019-01-10 10:36:19 +0800
committerGitHub <noreply@github.com>2019-01-10 10:36:19 +0800
commit6df3e4eeb0dda986aef3f71335151fa63c06f6d3 (patch)
treebefe88b3e0d044281037cd4fcaaab09d32338d6a /swarm/network/hive.go
parentd70c4faf20d5533e30eec5cbb9b5180eb837b78c (diff)
downloaddexon-6df3e4eeb0dda986aef3f71335151fa63c06f6d3.tar
dexon-6df3e4eeb0dda986aef3f71335151fa63c06f6d3.tar.gz
dexon-6df3e4eeb0dda986aef3f71335151fa63c06f6d3.tar.bz2
dexon-6df3e4eeb0dda986aef3f71335151fa63c06f6d3.tar.lz
dexon-6df3e4eeb0dda986aef3f71335151fa63c06f6d3.tar.xz
dexon-6df3e4eeb0dda986aef3f71335151fa63c06f6d3.tar.zst
dexon-6df3e4eeb0dda986aef3f71335151fa63c06f6d3.zip
swarm/network: remove isproxbin bool from kad.Each* iterfunc (#18239)
* swarm/network, swarm/pss: remove isproxbin bool from kad.Each* iterfunc * swarm/network: restore comment and unskip snapshot sync tests
Diffstat (limited to 'swarm/network/hive.go')
-rw-r--r--swarm/network/hive.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/swarm/network/hive.go b/swarm/network/hive.go
index ebef54592..a0b6b988a 100644
--- a/swarm/network/hive.go
+++ b/swarm/network/hive.go
@@ -114,7 +114,7 @@ func (h *Hive) Stop() error {
}
}
log.Info(fmt.Sprintf("%08x hive stopped, dropping peers", h.BaseAddr()[:4]))
- h.EachConn(nil, 255, func(p *Peer, _ int, _ bool) bool {
+ h.EachConn(nil, 255, func(p *Peer, _ int) bool {
log.Info(fmt.Sprintf("%08x dropping peer %08x", h.BaseAddr()[:4], p.Address()[:4]))
p.Drop(nil)
return true
@@ -228,7 +228,7 @@ func (h *Hive) loadPeers() error {
// savePeers, savePeer implement persistence callback/
func (h *Hive) savePeers() error {
var peers []*BzzAddr
- h.Kademlia.EachAddr(nil, 256, func(pa *BzzAddr, i int, _ bool) bool {
+ h.Kademlia.EachAddr(nil, 256, func(pa *BzzAddr, i int) bool {
if pa == nil {
log.Warn(fmt.Sprintf("empty addr: %v", i))
return true