prysm-pulse/slasher/cache/span_cache.go
terence tsao f9303ca2e4
Clean up unused functions (#8403)
* Clean ups

* Gazelle
2021-02-05 18:39:15 +00:00

21 lines
631 B
Go

package cache
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
var (
// epochSpansCacheSize defines the max number of epoch spans the cache can hold.
epochSpansCacheSize = 256
// Metrics for the span cache.
epochSpansCacheHit = promauto.NewCounter(prometheus.CounterOpts{
Name: "epoch_spans_cache_hit",
Help: "The total number of cache hits on the epoch spans cache.",
})
epochSpansCacheMiss = promauto.NewCounter(prometheus.CounterOpts{
Name: "epoch_spans_cache_miss",
Help: "The total number of cache misses on the epoch spans cache.",
})
)