Merge pull request #6823 from johncming/fix-args

tsdb/wal: remove unused argument.
This commit is contained in:
Bartlomiej Plotka 2020-02-16 08:25:17 +00:00 committed by GitHub
commit 384cba98fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 {