aboutsummaryrefslogtreecommitdiffstats
path: root/metrics/ewma.go
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2018-09-17 20:32:34 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-09-17 20:32:34 +0800
commit5d1d1a808d92440a7c0efad77fa5527e4255e596 (patch)
tree5c083f2bf130abe21f37f024018b91912446c70c /metrics/ewma.go
parent41ac8dd803b646b5fa92354a983ee5df68253e2a (diff)
downloaddexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.tar.gz
dexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.tar.zst
dexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.zip
consensus, ethdb, metrics: implement forced-meter (#17667)
Diffstat (limited to 'metrics/ewma.go')
-rw-r--r--metrics/ewma.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/metrics/ewma.go b/metrics/ewma.go
index 3aecd4fa3..57c949e7d 100644
--- a/metrics/ewma.go
+++ b/metrics/ewma.go
@@ -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}
}