diff options
author | Javier Peletier <jpeletier@users.noreply.github.com> | 2018-12-18 14:24:59 +0800 |
---|---|---|
committer | Viktor TrĂ³n <viktor.tron@gmail.com> | 2018-12-18 14:24:59 +0800 |
commit | de4265fa028f2b0eb96a21e295028e0d19426adb (patch) | |
tree | ce220fe8d41dc5e21c3c56d87f9dae10068ca442 | |
parent | 90ea542e9efa5ec7652e2b507a7122e5a8e4b91b (diff) | |
download | dexon-de4265fa028f2b0eb96a21e295028e0d19426adb.tar dexon-de4265fa028f2b0eb96a21e295028e0d19426adb.tar.gz dexon-de4265fa028f2b0eb96a21e295028e0d19426adb.tar.bz2 dexon-de4265fa028f2b0eb96a21e295028e0d19426adb.tar.lz dexon-de4265fa028f2b0eb96a21e295028e0d19426adb.tar.xz dexon-de4265fa028f2b0eb96a21e295028e0d19426adb.tar.zst dexon-de4265fa028f2b0eb96a21e295028e0d19426adb.zip |
swarm/network/simulation:commented out unreachable code-avoid vet errors (#18263)
-rw-r--r-- | swarm/network/simulation/example_test.go | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/swarm/network/simulation/example_test.go b/swarm/network/simulation/example_test.go index 7b6204617..a100ede51 100644 --- a/swarm/network/simulation/example_test.go +++ b/swarm/network/simulation/example_test.go @@ -18,14 +18,8 @@ package simulation_test import ( "context" - "fmt" - "sync" - "time" "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/p2p/simulations/adapters" - "github.com/ethereum/go-ethereum/swarm/network" "github.com/ethereum/go-ethereum/swarm/network/simulation" ) @@ -35,7 +29,8 @@ import ( func ExampleSimulation_WaitTillHealthy() { log.Error("temporarily disabled as simulations.WaitTillHealthy cannot be trusted") - return + + /* Commented out to avoid go vet errors/warnings sim := simulation.New(map[string]simulation.ServiceFunc{ "bzz": func(ctx *adapters.ServiceContext, b *sync.Map) (node.Service, func(), error) { @@ -75,6 +70,8 @@ func ExampleSimulation_WaitTillHealthy() { } // continue with the test + + */ } // Watch all peer events in the simulation network, buy receiving from a channel. |