mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
p2p/netutil: fix comments (#29942)
This commit is contained in:
parent
cbbfa3eac0
commit
0750cb0c8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue