Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann committed Oct 28, 2024
1 parent 63bb1c9 commit 93ddc04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion p2p/snap_server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package p2p

import (
"iter"
"math/big"

"github.com/NethermindEth/juno/adapters/core2p2p"
Expand All @@ -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 {
Expand Down
6 changes: 4 additions & 2 deletions utils/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down

0 comments on commit 93ddc04

Please sign in to comment.