From be9c870b06fd0d032e9c83fd247fbe681b1bef8e Mon Sep 17 00:00:00 2001 From: kcx2366425574 Date: Thu, 13 May 2021 17:26:44 +0800 Subject: [PATCH] remove the param that is not used Signed-off-by: kcx2366425574 --- tsdb/wal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsdb/wal.go b/tsdb/wal.go index 8d49c8432..54b08f80c 100644 --- a/tsdb/wal.go +++ b/tsdb/wal.go @@ -64,7 +64,7 @@ type walMetrics struct { corruptions prometheus.Counter } -func newWalMetrics(wal *SegmentWAL, r prometheus.Registerer) *walMetrics { +func newWalMetrics(r prometheus.Registerer) *walMetrics { m := &walMetrics{} m.fsyncDuration = prometheus.NewSummary(prometheus.SummaryOpts{ @@ -192,7 +192,7 @@ func OpenSegmentWAL(dir string, logger log.Logger, flushInterval time.Duration, segmentSize: walSegmentSizeBytes, crc32: newCRC32(), } - w.metrics = newWalMetrics(w, r) + w.metrics = newWalMetrics(r) fns, err := sequenceFiles(w.dirFile.Name()) if err != nil {