diff options
author | Ferenc Szabo <frncmx@gmail.com> | 2019-01-06 18:58:57 +0800 |
---|---|---|
committer | Viktor TrĂ³n <viktor.tron@gmail.com> | 2019-01-06 18:58:57 +0800 |
commit | fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4 (patch) | |
tree | a23d6d5014d1b81d60e741b15e4616d4f18116a7 /p2p/simulations/network.go | |
parent | 072c95fb74ac108e93207a8052e641cfaf863105 (diff) | |
download | dexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar dexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.gz dexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.bz2 dexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.lz dexon-fe03b76ffe9f9d48b09f4d93f18fae1e5ad4c1f4.tar.xz 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 'p2p/simulations/network.go')
-rw-r--r-- | p2p/simulations/network.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go index a6fac2c2a..a711fd78e 100644 --- a/p2p/simulations/network.go +++ b/p2p/simulations/network.go @@ -518,7 +518,7 @@ func (net *Network) getConn(oneID, otherID enode.ID) *Conn { return net.Conns[i] } -// InitConn(one, other) retrieves the connectiton model for the connection between +// InitConn(one, other) retrieves the connection model for the connection between // peers one and other, or creates a new one if it does not exist // the order of nodes does not matter, i.e., Conn(i,j) == Conn(j, i) // it checks if the connection is already up, and if the nodes are running @@ -564,8 +564,8 @@ func (net *Network) Shutdown() { close(net.quitc) } -//Reset resets all network properties: -//emtpies the nodes and the connection list +// Reset resets all network properties: +// empties the nodes and the connection list func (net *Network) Reset() { net.lock.Lock() defer net.lock.Unlock() |