From c30abf1e2bf7fd873ac5e31910dd99dbafaf85c7 Mon Sep 17 00:00:00 2001 From: johncming Date: Sat, 15 Feb 2020 21:48:47 +0800 Subject: [PATCH] tsdb/wal: remove unused argument. Signed-off-by: johncming --- tsdb/wal/wal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsdb/wal/wal.go b/tsdb/wal/wal.go index 510326b88..bb57975ad 100644 --- a/tsdb/wal/wal.go +++ b/tsdb/wal/wal.go @@ -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 {