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/adapters | |
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/adapters')
-rw-r--r-- | p2p/simulations/adapters/exec.go | 2 | ||||
-rw-r--r-- | p2p/simulations/adapters/inproc.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/p2p/simulations/adapters/exec.go b/p2p/simulations/adapters/exec.go index abb196717..9b588db1b 100644 --- a/p2p/simulations/adapters/exec.go +++ b/p2p/simulations/adapters/exec.go @@ -46,7 +46,7 @@ import ( func init() { // Register a reexec function to start a simulation node when the current binary is - // executed as "p2p-node" (rather than whataver the main() function would normally do). + // executed as "p2p-node" (rather than whatever the main() function would normally do). reexec.Register("p2p-node", execP2PNode) } diff --git a/p2p/simulations/adapters/inproc.go b/p2p/simulations/adapters/inproc.go index 52a662be6..d122cd648 100644 --- a/p2p/simulations/adapters/inproc.go +++ b/p2p/simulations/adapters/inproc.go @@ -130,7 +130,7 @@ func (s *SimAdapter) Dial(dest *enode.Node) (conn net.Conn, err error) { return nil, err } // this is simulated 'listening' - // asynchronously call the dialed destintion node's p2p server + // asynchronously call the dialed destination node's p2p server // to set up connection on the 'listening' side go srv.SetupConn(pipe1, 0, nil) return pipe2, nil |