diff options
author | Viktor TrĂ³n <viktor.tron@gmail.com> | 2018-09-12 17:24:56 +0800 |
---|---|---|
committer | Balint Gabor <balint.g@gmail.com> | 2018-09-12 17:24:56 +0800 |
commit | bfce00385f1c8dab222b7ddab6c336177a5ae731 (patch) | |
tree | 8b3d2b2ce30e8b5eaf6db5b89a6c5570c3997cff /swarm/network/simulations/discovery | |
parent | b06ff563a1f1095407612e04a1707e13d2dc20da (diff) | |
download | go-tangerine-bfce00385f1c8dab222b7ddab6c336177a5ae731.tar go-tangerine-bfce00385f1c8dab222b7ddab6c336177a5ae731.tar.gz go-tangerine-bfce00385f1c8dab222b7ddab6c336177a5ae731.tar.bz2 go-tangerine-bfce00385f1c8dab222b7ddab6c336177a5ae731.tar.lz go-tangerine-bfce00385f1c8dab222b7ddab6c336177a5ae731.tar.xz go-tangerine-bfce00385f1c8dab222b7ddab6c336177a5ae731.tar.zst go-tangerine-bfce00385f1c8dab222b7ddab6c336177a5ae731.zip |
Kademlia refactor (#17641)
* swarm/network: simplify kademlia/hive; rid interfaces
* swarm, swarm/network/stream, swarm/netork/simulations,, swarm/pss: adapt to new Kad API
* swarm/network: minor changes re review; add missing lock to NeighbourhoodDepthC
Diffstat (limited to 'swarm/network/simulations/discovery')
-rw-r--r-- | swarm/network/simulations/discovery/discovery_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swarm/network/simulations/discovery/discovery_test.go b/swarm/network/simulations/discovery/discovery_test.go index acf3479e5..913d6d837 100644 --- a/swarm/network/simulations/discovery/discovery_test.go +++ b/swarm/network/simulations/discovery/discovery_test.go @@ -556,8 +556,8 @@ func newService(ctx *adapters.ServiceContext) (node.Service, error) { kp.MinProxBinSize = testMinProxBinSize if ctx.Config.Reachable != nil { - kp.Reachable = func(o network.OverlayAddr) bool { - return ctx.Config.Reachable(o.(*network.BzzAddr).ID()) + kp.Reachable = func(o *network.BzzAddr) bool { + return ctx.Config.Reachable(o.ID()) } } kad := network.NewKademlia(addr.Over(), kp) |