Skip to content

Commit

Permalink
remove the param that is not used
Browse files Browse the repository at this point in the history
Signed-off-by: kcx2366425574 <kuangcx@inspur.com>
  • Loading branch information
kcx2366425574 committed May 13, 2021
1 parent e313ffa commit be9c870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsdb/wal.go
Expand Up @@ -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{
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit be9c870

Please sign in to comment.