Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 026a875

Browse files
committed
close pg
1 parent 51d2be4 commit 026a875

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/resetpassword.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func (*RootCmd) resetPassword() *serpent.Command {
5050
if err != nil {
5151
return xerrors.Errorf("dial postgres: %w", err)
5252
}
53+
defer sqlDB.Close()
5354

5455
db := database.New(sqlDB)
5556

0 commit comments

Comments
 (0)