mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
cmd/swarm/swarm-snapshot: remove redundant check in createSnapshot
This commit is contained in:
parent
b226052576
commit
a208208425
1 changed files with 0 additions and 4 deletions
|
|
@ -97,10 +97,6 @@ func createSnapshot(filename string, nodes int, services []string) (err error) {
|
||||||
}
|
}
|
||||||
sub.Unsubscribe()
|
sub.Unsubscribe()
|
||||||
|
|
||||||
if len(sim.Net.Conns) > 0 {
|
|
||||||
return errors.New("no connections should exist after just adding nodes")
|
|
||||||
}
|
|
||||||
|
|
||||||
err = sim.Net.ConnectNodesRing(nil)
|
err = sim.Net.ConnectNodesRing(nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("connect nodes: %v", err)
|
return fmt.Errorf("connect nodes: %v", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue