aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/network/simulation/node.go
diff options
context:
space:
mode:
authorFerenc Szabo <frncmx@gmail.com>2019-01-06 18:58:57 +0800
committerViktor TrĂ³n <viktor.tron@gmail.com>2019-01-06 18:58:57 +0800
commitfe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4 (patch)
treea23d6d5014d1b81d60e741b15e4616d4f18116a7 /swarm/network/simulation/node.go
parent072c95fb74ac108e93207a8052e641cfaf863105 (diff)
downloaddexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.gz
dexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.zst
dexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.zip
A few minor code inspection fixes (#18393)
* swarm/network: fix code inspection problems - typos - redundant import alias * p2p/simulations: fix code inspection problems - typos - unused function parameters - redundant import alias - code style issue: snake case * swarm/network: fix unused method parameters inspections
Diffstat (limited to 'swarm/network/simulation/node.go')
-rw-r--r--swarm/network/simulation/node.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/swarm/network/simulation/node.go b/swarm/network/simulation/node.go
index 24b659976..e8d4d6d94 100644
--- a/swarm/network/simulation/node.go
+++ b/swarm/network/simulation/node.go
@@ -195,9 +195,9 @@ func (s *Simulation) AddNodesAndConnectStar(count int, opts ...AddNodeOption) (i
return ids, nil
}
-//UploadSnapshot uploads a snapshot to the simulation
-//This method tries to open the json file provided, applies the config to all nodes
-//and then loads the snapshot into the Simulation network
+// UploadSnapshot uploads a snapshot to the simulation
+// This method tries to open the json file provided, applies the config to all nodes
+// and then loads the snapshot into the Simulation network
func (s *Simulation) UploadSnapshot(snapshotFile string, opts ...AddNodeOption) error {
f, err := os.Open(snapshotFile)
if err != nil {