Skip to content

Commit

Permalink
fix golangcilint
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Nov 21, 2024
1 parent ead8ada commit 1acffee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions p2p/discover/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func unwrapNodes(ns []*tableNode) []*enode.Node {
return result
}

//nolint:unused
func (n *tableNode) addr() *net.UDPAddr {
return &net.UDPAddr{IP: n.IP(), Port: n.UDP()}
}
Expand Down
1 change: 1 addition & 0 deletions p2p/discover/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ func (tab *Table) bucketAtDistance(d int) *bucket {
return tab.buckets[d-bucketMinDistance-1]
}

//nolint:unused
func (tab *Table) filterNode(n *tableNode) bool {
if tab.enrFilter == nil {
return false
Expand Down

0 comments on commit 1acffee

Please sign in to comment.