eth: remove package renaming

This commit is contained in:
Felix Lange 2025-08-27 00:27:00 +02:00
parent f83670fe29
commit 411b6716d6

View file

@ -22,7 +22,7 @@ import (
"hash" "hash"
"hash/fnv" "hash/fnv"
"maps" "maps"
gmath "math" "math"
"slices" "slices"
"sync" "sync"
"sync/atomic" "sync/atomic"
@ -729,7 +729,7 @@ func (bc *broadcastChoice) choosePeers(peers []*ethPeer, txSender common.Address
// Take top n. // Take top n.
clear(bc.buffer) clear(bc.buffer)
n := int(gmath.Ceil(gmath.Sqrt(float64(len(bc.tmp))))) n := int(math.Ceil(math.Sqrt(float64(len(bc.tmp)))))
for i := range n { for i := range n {
bc.buffer[bc.tmp[i].p] = struct{}{} bc.buffer[bc.tmp[i].p] = struct{}{}
} }