Merge pull request #8822 from kcx2366425574/main

remove unused param
pull/8850/head^2
Julien Pivotto 4 years ago committed by GitHub
commit ea33dbf80f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ type walMetrics struct {
corruptions prometheus.Counter corruptions prometheus.Counter
} }
func newWalMetrics(wal *SegmentWAL, r prometheus.Registerer) *walMetrics { func newWalMetrics(r prometheus.Registerer) *walMetrics {
m := &walMetrics{} m := &walMetrics{}
m.fsyncDuration = prometheus.NewSummary(prometheus.SummaryOpts{ m.fsyncDuration = prometheus.NewSummary(prometheus.SummaryOpts{
@ -192,7 +192,7 @@ func OpenSegmentWAL(dir string, logger log.Logger, flushInterval time.Duration,
segmentSize: walSegmentSizeBytes, segmentSize: walSegmentSizeBytes,
crc32: newCRC32(), crc32: newCRC32(),
} }
w.metrics = newWalMetrics(w, r) w.metrics = newWalMetrics(r)
fns, err := sequenceFiles(w.dirFile.Name()) fns, err := sequenceFiles(w.dirFile.Name())
if err != nil { if err != nil {

Loading…
Cancel
Save