diff --git a/p2p/snap_server.go b/p2p/snap_server.go index 728f3d588e..d757dede5c 100644 --- a/p2p/snap_server.go +++ b/p2p/snap_server.go @@ -1,6 +1,7 @@ package p2p import ( + "iter" "math/big" "github.com/NethermindEth/juno/adapters/core2p2p" @@ -13,7 +14,6 @@ import ( "github.com/NethermindEth/juno/utils" "github.com/ethereum/go-ethereum/log" "google.golang.org/protobuf/proto" - "iter" ) type ContractRangeStreamingResult struct { diff --git a/utils/log.go b/utils/log.go index a38857facb..6f0d02bf72 100644 --- a/utils/log.go +++ b/utils/log.go @@ -121,8 +121,10 @@ func (l *ZapLogger) Tracew(msg string, keysAndValues ...interface{}) { } } -var _ Logger = (*ZapLogger)(nil) -var _ SimpleLogger = (*ZapLogger)(nil) +var ( + _ Logger = (*ZapLogger)(nil) + _ SimpleLogger = (*ZapLogger)(nil) +) func NewNopZapLogger() *ZapLogger { return &ZapLogger{zap.NewNop().Sugar()}