Skip to content

Commit 64b55f2

Browse files
committed
swarm/network/simulation:commented out unreachable code-avoid vet errors
1 parent f32790f commit 64b55f2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

swarm/network/simulation/example_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@ package simulation_test
1818

1919
import (
2020
"context"
21-
"fmt"
22-
"sync"
23-
"time"
2421

2522
"github.com/ethereum/go-ethereum/log"
26-
"github.com/ethereum/go-ethereum/node"
27-
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
28-
"github.com/ethereum/go-ethereum/swarm/network"
2923
"github.com/ethereum/go-ethereum/swarm/network/simulation"
3024
)
3125

@@ -35,7 +29,8 @@ import (
3529
func ExampleSimulation_WaitTillHealthy() {
3630

3731
log.Error("temporarily disabled as simulations.WaitTillHealthy cannot be trusted")
38-
return
32+
33+
/* Commented out to avoid go vet errors/warnings
3934
4035
sim := simulation.New(map[string]simulation.ServiceFunc{
4136
"bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) {
@@ -75,6 +70,8 @@ func ExampleSimulation_WaitTillHealthy() {
7570
}
7671
7772
// continue with the test
73+
74+
*/
7875
}
7976

8077
// Watch all peer events in the simulation network, buy receiving from a channel.

0 commit comments

Comments
 (0)