From f78a43e0fb5d38c07704c42a71c5e1769a1011ae Mon Sep 17 00:00:00 2001 From: LINCKODE Date: Mon, 2 Sep 2024 13:56:33 +0300 Subject: [PATCH] Add missing db.Close() statement. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")