cmd/swarm/swarm-snapshot: remove redundant check in createSnapshot

This commit is contained in:
Janos Guljas 2019-01-11 13:57:19 +01:00 committed by Elad Nachmias
parent b226052576
commit a208208425

View file

@ -97,10 +97,6 @@ func createSnapshot(filename string, nodes int, services []string) (err error) {
}
sub.Unsubscribe()
if len(sim.Net.Conns) > 0 {
return errors.New("no connections should exist after just adding nodes")
}
err = sim.Net.ConnectNodesRing(nil)
if err != nil {
return fmt.Errorf("connect nodes: %v", err)