diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2023-11-09 08:42:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 08:42:33 +0100 |
commit | 699f5ca8c1f73ff7e4b70f0f9273ffcb1c195cdc (patch) | |
tree | 924223527aadefe03cceb4f2736ac00b80dcb68b /relayapi | |
parent | ee73a90aea8349e2695ce555ac868bbf45c11d02 (diff) |
More `rows.Close()` and `rows.Err()` (#3262)
Looks like we missed some `rows.Close()`
Even though `rows.Err()` is mostly not necessary, we should be more
consistent in the DB layer.
[skip ci]
Diffstat (limited to 'relayapi')
-rw-r--r-- | relayapi/storage/postgres/relay_queue_json_table.go | 2 | ||||
-rw-r--r-- | relayapi/storage/sqlite3/relay_queue_json_table.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/relayapi/storage/postgres/relay_queue_json_table.go b/relayapi/storage/postgres/relay_queue_json_table.go index 74410fc8..94ae4140 100644 --- a/relayapi/storage/postgres/relay_queue_json_table.go +++ b/relayapi/storage/postgres/relay_queue_json_table.go @@ -109,5 +109,5 @@ func (s *relayQueueJSONStatements) SelectQueueJSON( } blobs[nid] = blob } - return blobs, err + return blobs, rows.Err() } diff --git a/relayapi/storage/sqlite3/relay_queue_json_table.go b/relayapi/storage/sqlite3/relay_queue_json_table.go index 502da3b0..a1af82aa 100644 --- a/relayapi/storage/sqlite3/relay_queue_json_table.go +++ b/relayapi/storage/sqlite3/relay_queue_json_table.go @@ -133,5 +133,5 @@ func (s *relayQueueJSONStatements) SelectQueueJSON( } blobs[nid] = blob } - return blobs, err + return blobs, rows.Err() } |