consensus, ethdb, metrics: implement forced-meter (#17667)
This commit is contained in:
committed by
Péter Szilágyi
parent
41ac8dd803
commit
5d1d1a808d
@ -17,9 +17,6 @@ type EWMA interface {
|
||||
|
||||
// NewEWMA constructs a new EWMA with the given alpha.
|
||||
func NewEWMA(alpha float64) EWMA {
|
||||
if !Enabled {
|
||||
return NilEWMA{}
|
||||
}
|
||||
return &StandardEWMA{alpha: alpha}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user