diff --git a/node/node.go b/node/node.go index 5279d98d56..35a775ee82 100644 --- a/node/node.go +++ b/node/node.go @@ -39,9 +39,9 @@ import ( ) const ( - upgraderDelay * time.Minute - githubAPIUrl = "https://api.github.com/repos/NethermindEth/juno/releases/latest" - latestReleaseURLhttps://github.com/NethermindEth/juno/releases/latest" + upgraderDelay = 5 * time.Minute + githubAPIUrl = "https://api.github.com/repos/NethermindEth/juno/releases/latest" + latestReleaseURL = "https://github.com/NethermindEth/juno/releases/latest" ) // Config is the top-level juno configuration. @@ -181,7 +181,7 @@ func New(cfg *Config, version string) (*Node, error) { //nolint:gocyclo,funlen rpcHandler = rpcHandler.WithFilterLimit(cfg.RPCMaxBlockScan).WithCallMaxSteps(uint64(cfg.RPCCallMaxSteps)) services = append(services, rpcHandler) - l1ToP2P := make(chan p2p.IPAddressRegistryEvent) + l1ToP2P := make(chan p2p.IPAddressRegistryEvent) if !cfg.DisableL1Verification { // Due to mutually exclusive flag we can do the following. if cfg.EthNode == "" { diff --git a/p2p/p2p_test.go b/p2p/p2p_test.go index 444ed5f34a..d5bd377fe1 100644 --- a/p2p/p2p_test.go +++ b/p2p/p2p_test.go @@ -12,7 +12,6 @@ import ( "github.com/stretchr/testify/require" ) - func TestInvalidKey(t *testing.T) { _, err := p2p.New( "/ip4/127.0.0.1/tcp/30301",