mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
don't need to copy the while slice, it's ok to use the pointer directly
This commit is contained in:
parent
9a8e14e77e
commit
5ffb920b6d
1 changed files with 1 additions and 1 deletions
|
|
@ -1639,7 +1639,7 @@ func (as *accountSet) flatten() []common.Address {
|
|||
|
||||
// merge adds all addresses from the 'other' set into 'as'.
|
||||
func (as *accountSet) merge(other *accountSet) {
|
||||
maps.Copy(as.accounts, other.accounts)
|
||||
as.accounts = other.accounts
|
||||
as.cache = nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue