diff --git a/main.go b/main.go index d76373f..5e43531 100644 --- a/main.go +++ b/main.go @@ -91,6 +91,8 @@ func run() error { return errors.Wrap(err, "creating db") } + defer db.Close() + ps := store.NewPebbleStore(db, nil) if cfg.Store.ResetEmptyTickKeys { @@ -101,8 +103,6 @@ func run() error { } } - _ = "" - err = tick.CalculateEmptyTicksForAllEpochs(ps) if err != nil { return errors.Wrap(err, "calculating empty ticks for all epochs")