pull/10616/head
Edd Robinson 2018-11-29 16:58:20 +00:00
parent a8b6827c9e
commit 93892c20ab
2 changed files with 1 additions and 2 deletions

View File

@ -265,7 +265,6 @@ func (m *Main) run(ctx context.Context) (err error) {
{
m.engine = storage.NewEngine(m.enginePath, storage.NewConfig(), storage.WithRetentionEnforcer(bucketSvc))
m.engine.WithLogger(m.logger)
reg.MustRegister(m.engine.PrometheusCollectors()...)
if err := m.engine.Open(); err != nil {
m.logger.Error("failed to open engine", zap.Error(err))

View File

@ -583,7 +583,7 @@ func (l *WAL) newSegmentFile() error {
type walTracker struct {
metrics *walMetrics
oldSegmentBytes uint64
oldSegmentBytes uint64
}
func newWALTracker(metrics *walMetrics) *walTracker {