From a208208425654c924a2b3ec7c77e03a0c6f05a96 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Fri, 11 Jan 2019 13:57:19 +0100 Subject: [PATCH] cmd/swarm/swarm-snapshot: remove redundant check in createSnapshot --- cmd/swarm/swarm-snapshot/create.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/swarm/swarm-snapshot/create.go b/cmd/swarm/swarm-snapshot/create.go index e5236b865d..155b612590 100644 --- a/cmd/swarm/swarm-snapshot/create.go +++ b/cmd/swarm/swarm-snapshot/create.go @@ -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)