swarm/network: Linting

This commit is contained in:
lash 2018-11-16 09:37:07 +01:00
parent 6ad466842a
commit 12f1e6849f
3 changed files with 2 additions and 4 deletions

View file

@ -677,7 +677,7 @@ func NewPeerPotMap(kadMinProxSize int, addrs [][]byte) map[string]*PeerPot {
depthTraversed = true depthTraversed = true
} }
// expected po in next iteration if there are no empty bins inbetween // expected po in next iteration if there are no empty bins in between
prev = po - 1 prev = po - 1
return true return true
}) })

View file

@ -78,7 +78,7 @@ func Register(k *Kademlia, regs ...string) {
// tests the validity of neighborhood depth calculations // tests the validity of neighborhood depth calculations
// //
// in particular, it tests that if there are one or more consequtive // in particular, it tests that if there are one or more consecutive
// empty bins above the farthest "nearest neighbor-peer" then // empty bins above the farthest "nearest neighbor-peer" then
// the depth should be set at the farthest of those empty bins // the depth should be set at the farthest of those empty bins
// //

View file

@ -153,7 +153,6 @@ simulation's `action` function.
The snapshot should have 'streamer' in its service list. The snapshot should have 'streamer' in its service list.
*/ */
func runFileRetrievalTest(nodeCount int) error { func runFileRetrievalTest(nodeCount int) error {
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
sim := simulation.New(retrievalSimServiceMap) sim := simulation.New(retrievalSimServiceMap)
defer sim.Close() defer sim.Close()
@ -248,7 +247,6 @@ The snapshot should have 'streamer' in its service list.
*/ */
func runRetrievalTest(chunkCount int, nodeCount int) error { func runRetrievalTest(chunkCount int, nodeCount int) error {
t.Skip("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
sim := simulation.New(retrievalSimServiceMap) sim := simulation.New(retrievalSimServiceMap)
defer sim.Close() defer sim.Close()