diff options
author | Prateek Sachan <42961174+prateek2211@users.noreply.github.com> | 2020-03-18 15:47:18 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 10:17:18 +0000 |
commit | c019ad708669a4c269072bea933f0a520a78ca7c (patch) | |
tree | 99b4cd6f06b6d3a1db8fa66666e715fd6cd12e58 /syncapi/storage/postgres/account_data_table.go | |
parent | c2bd0b97b34c9040325bf31c5c4a2a06579239d9 (diff) |
Log errors from rows.Close (#920)
* Log errors from rows.Close
* fixed imports
* Added contextual messages
* fixed review changes
Diffstat (limited to 'syncapi/storage/postgres/account_data_table.go')
-rw-r--r-- | syncapi/storage/postgres/account_data_table.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/storage/postgres/account_data_table.go b/syncapi/storage/postgres/account_data_table.go index d1811aa6..d1e3b527 100644 --- a/syncapi/storage/postgres/account_data_table.go +++ b/syncapi/storage/postgres/account_data_table.go @@ -118,7 +118,7 @@ func (s *accountDataStatements) selectAccountDataInRange( if err != nil { return } - defer rows.Close() // nolint: errcheck + defer common.CloseAndLogIfError(ctx, rows, "selectAccountDataInRange: rows.close() failed") for rows.Next() { var dataType string |