Skip to content

Commit

Permalink
always close db connections
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Dec 14, 2023
1 parent a437d09 commit 290c53d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions postgresql/notifications_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func (s *NotificationsStore) GetRegistrations(
if err != nil {
return nil, err
}
defer rows.Close()

var result []string
for rows.Next() {
Expand Down
1 change: 1 addition & 0 deletions postgresql/opening_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func (s *PostgresOpeningStore) GetFeeParamsSettings(token string) ([]*common.Ope
log.Printf("GetFeeParamsSettings(%v) error: %v", token, err)
return nil, err
}
defer rows.Close()

var settings []*common.OpeningFeeParamsSetting
for rows.Next() {
Expand Down

0 comments on commit 290c53d

Please sign in to comment.