mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-19 06:44:23 +01:00
always close pgx rows
This commit is contained in:
@@ -60,6 +60,7 @@ func (s *NotificationsStore) GetRegistrations(
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
|
||||
var result []string
|
||||
for rows.Next() {
|
||||
|
||||
@@ -30,6 +30,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() {
|
||||
|
||||
Reference in New Issue
Block a user