From 383323310cf1516b660d5ff827abe58cd4e5ee6f Mon Sep 17 00:00:00 2001 From: AnkushinDaniil Date: Wed, 18 Dec 2024 19:30:53 +0700 Subject: [PATCH] Fix minor issues --- node/node.go | 8 ++++---- p2p/p2p_test.go | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) 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",