From bd9014da6979111a3b4514eb2fa6b27db08373fd Mon Sep 17 00:00:00 2001 From: zelig Date: Sat, 12 Jan 2019 06:04:29 +0100 Subject: [PATCH] swarm/network: remove commented code --- swarm/network/simulations/discovery/discovery_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/swarm/network/simulations/discovery/discovery_test.go b/swarm/network/simulations/discovery/discovery_test.go index 3daf9650d8..e13517a63e 100644 --- a/swarm/network/simulations/discovery/discovery_test.go +++ b/swarm/network/simulations/discovery/discovery_test.go @@ -268,7 +268,6 @@ func discoverySimulation(nodes, conns int, adapter adapters.NodeAdapter) (*simul healthy := &network.Health{} if err := client.Call(&healthy, "hive_healthy", ppmap[common.Bytes2Hex(id.Bytes())]); err != nil { - // if err := client.Call(&healthy, "hive_healthy", ppmap[id2addr[id]); err != nil { return false, fmt.Errorf("error getting node health: %s", err) } log.Info(fmt.Sprintf("node %4s healthy: connected nearest neighbours: %v, know nearest neighbours: %v,\n\n%v", id, healthy.ConnectNN, healthy.KnowNN, healthy.Hive)) @@ -427,7 +426,6 @@ func discoveryPersistenceSimulation(nodes, conns int, adapter adapters.NodeAdapt ppmap := network.NewPeerPotMap(network.NewKadParams().NeighbourhoodSize, addrs) if err := client.Call(&healthy, "hive_healthy", ppmap[common.Bytes2Hex(id.Bytes())]); err != nil { - // if err := client.Call(&healthy, "hive_healthy", ppmap); err != nil { return false, fmt.Errorf("error getting node health: %s", err) } log.Info(fmt.Sprintf("node %4s healthy: got nearest neighbours: %v, know nearest neighbours: %v", id, healthy.ConnectNN, healthy.KnowNN))