Skip to content

Commit

Permalink
close db
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Nov 29, 2024
1 parent e712746 commit 03edf58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/pruning/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Supported app-db-backend types include 'goleveldb', 'rocksdb', 'pebbledb'.`,
if err != nil {
return err
}
defer db.Close()

logger := log.NewLogger(cmd.OutOrStdout())
app := appCreator(logger, db, nil, vp)
Expand Down

0 comments on commit 03edf58

Please sign in to comment.