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
This commit is contained in:
committed by
Viktor Trón
parent
072c95fb74
commit
fe03b76ffe
@ -35,7 +35,7 @@ import (
|
||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||
"github.com/ethereum/go-ethereum/p2p/simulations/adapters"
|
||||
"github.com/ethereum/go-ethereum/rpc"
|
||||
colorable "github.com/mattn/go-colorable"
|
||||
"github.com/mattn/go-colorable"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -294,6 +294,7 @@ var testServices = adapters.Services{
|
||||
}
|
||||
|
||||
func testHTTPServer(t *testing.T) (*Network, *httptest.Server) {
|
||||
t.Helper()
|
||||
adapter := adapters.NewSimAdapter(testServices)
|
||||
network := NewNetwork(adapter, &NetworkConfig{
|
||||
DefaultService: "test",
|
||||
|
Reference in New Issue
Block a user