Skip to content

Commit

Permalink
Add missing db.Close() statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
LINCKODE committed Sep 2, 2024
1 parent 6db5312 commit f78a43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -101,8 +103,6 @@ func run() error {
}
}

_ = ""

err = tick.CalculateEmptyTicksForAllEpochs(ps)
if err != nil {
return errors.Wrap(err, "calculating empty ticks for all epochs")
Expand Down

0 comments on commit f78a43e

Please sign in to comment.