mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +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"
|
||||||
"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{}{}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue