mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +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)
|
||||
// droppedOutbound is the number of outbound peers dropped
|
||||
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.
|
||||
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
|
||||
|
|
@ -177,7 +177,7 @@ func (cm *dropper) dropRandomPeer() bool {
|
|||
if cm.peerStatsFunc != nil {
|
||||
droppable = cm.filterProtectedPeers(droppable)
|
||||
if len(droppable) == 0 {
|
||||
droppedProtected.Mark(1)
|
||||
dropSkipped.Mark(1)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue