mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
tsdb/wal: remove unused argument.
Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
parent
af04cb22c8
commit
c30abf1e2b
|
@ -190,7 +190,7 @@ type walMetrics struct {
|
|||
writesFailed prometheus.Counter
|
||||
}
|
||||
|
||||
func newWALMetrics(w *WAL, r prometheus.Registerer) *walMetrics {
|
||||
func newWALMetrics(r prometheus.Registerer) *walMetrics {
|
||||
m := &walMetrics{}
|
||||
|
||||
m.fsyncDuration = prometheus.NewSummary(prometheus.SummaryOpts{
|
||||
|
@ -264,7 +264,7 @@ func NewSize(logger log.Logger, reg prometheus.Registerer, dir string, segmentSi
|
|||
stopc: make(chan chan struct{}),
|
||||
compress: compress,
|
||||
}
|
||||
w.metrics = newWALMetrics(w, reg)
|
||||
w.metrics = newWALMetrics(reg)
|
||||
|
||||
_, last, err := w.Segments()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue