mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/network: Linting
This commit is contained in:
parent
6ad466842a
commit
12f1e6849f
3 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue