mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-03 13:38:39 +00:00
eth: rename droppedProtected metric to dropSkipped
This commit is contained in:
parent
47c603388a
commit
db611822db
1 changed files with 3 additions and 3 deletions
|
|
@ -52,9 +52,9 @@ var (
|
||||||
droppedInbound = metrics.NewRegisteredMeter("eth/dropper/inbound", nil)
|
droppedInbound = metrics.NewRegisteredMeter("eth/dropper/inbound", nil)
|
||||||
// droppedOutbound is the number of outbound peers dropped
|
// droppedOutbound is the number of outbound peers dropped
|
||||||
droppedOutbound = metrics.NewRegisteredMeter("eth/dropper/outbound", nil)
|
droppedOutbound = metrics.NewRegisteredMeter("eth/dropper/outbound", nil)
|
||||||
// droppedProtected counts times a drop was skipped because all
|
// dropSkipped counts times a drop was skipped because all
|
||||||
// droppable candidates were protected by inclusion stats.
|
// droppable candidates were protected by inclusion stats.
|
||||||
droppedProtected = metrics.NewRegisteredMeter("eth/dropper/protected", nil)
|
dropSkipped = metrics.NewRegisteredMeter("eth/dropper/protected", nil)
|
||||||
)
|
)
|
||||||
|
|
||||||
// PeerInclusionStats holds the per-peer inclusion data needed by the dropper
|
// PeerInclusionStats holds the per-peer inclusion data needed by the dropper
|
||||||
|
|
@ -177,7 +177,7 @@ func (cm *dropper) dropRandomPeer() bool {
|
||||||
if cm.peerStatsFunc != nil {
|
if cm.peerStatsFunc != nil {
|
||||||
droppable = cm.filterProtectedPeers(droppable)
|
droppable = cm.filterProtectedPeers(droppable)
|
||||||
if len(droppable) == 0 {
|
if len(droppable) == 0 {
|
||||||
droppedProtected.Mark(1)
|
dropSkipped.Mark(1)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue