aboutsummaryrefslogtreecommitdiff
path: root/syncapi/storage/postgres/account_data_table.go
diff options
context:
space:
mode:
authorPrateek Sachan <42961174+prateek2211@users.noreply.github.com>2020-03-18 15:47:18 +0530
committerGitHub <noreply@github.com>2020-03-18 10:17:18 +0000
commitc019ad708669a4c269072bea933f0a520a78ca7c (patch)
tree99b4cd6f06b6d3a1db8fa66666e715fd6cd12e58 /syncapi/storage/postgres/account_data_table.go
parentc2bd0b97b34c9040325bf31c5c4a2a06579239d9 (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.go2
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