mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +00:00
remove the param that is not used
Signed-off-by: kcx2366425574 <kuangcx@inspur.com>
This commit is contained in:
parent
e313ffa8ab
commit
be9c870b06
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user