mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
eth: remove package renaming
This commit is contained in:
parent
f83670fe29
commit
411b6716d6
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ import (
|
|||
"hash"
|
||||
"hash/fnv"
|
||||
"maps"
|
||||
gmath "math"
|
||||
"math"
|
||||
"slices"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
|
@ -729,7 +729,7 @@ func (bc *broadcastChoice) choosePeers(peers []*ethPeer, txSender common.Address
|
|||
|
||||
// Take top n.
|
||||
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 {
|
||||
bc.buffer[bc.tmp[i].p] = struct{}{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue