mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
p2p/dnsdisc: using clear builtin func
This commit is contained in:
parent
a3829178af
commit
83d49e876c
1 changed files with 1 additions and 3 deletions
|
|
@ -448,9 +448,7 @@ func newMapResolver(maps ...map[string]string) mapResolver {
|
|||
}
|
||||
|
||||
func (mr mapResolver) clear() {
|
||||
for k := range mr {
|
||||
delete(mr, k)
|
||||
}
|
||||
clear(mr)
|
||||
}
|
||||
|
||||
func (mr mapResolver) add(m map[string]string) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue