Skip to content

Commit

Permalink
p2p/netutil: fix comments (ethereum#29942)
Browse files Browse the repository at this point in the history
  • Loading branch information
hteevoli authored and jorgemmsilva committed Jun 17, 2024
1 parent d3863b9 commit 1f8d07d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/netutil/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,12 @@ func (s *DistinctNetSet) RemoveAddr(ip netip.Addr) {
}
}

// Contains whether the given IP is contained in the set.
// Contains reports whether the given IP is contained in the set.
func (s DistinctNetSet) Contains(ip net.IP) bool {
return s.ContainsAddr(IPToAddr(ip))
}

// ContainsAddr whether the given IP is contained in the set.
// ContainsAddr reports whether the given IP is contained in the set.
func (s DistinctNetSet) ContainsAddr(ip netip.Addr) bool {
key := s.key(ip)
_, ok := s.members[key]
Expand Down

0 comments on commit 1f8d07d

Please sign in to comment.