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 /setup | |
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 'setup')
-rw-r--r-- | setup/mscs/msc2836/storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/mscs/msc2836/storage.go b/setup/mscs/msc2836/storage.go index ade2a161..696d0b0d 100644 --- a/setup/mscs/msc2836/storage.go +++ b/setup/mscs/msc2836/storage.go @@ -301,7 +301,7 @@ func (p *DB) ChildrenForParent(ctx context.Context, eventID, relType string, rec } children = append(children, evInfo) } - return children, nil + return children, rows.Err() } func (p *DB) ParentForChild(ctx context.Context, eventID, relType string) (*eventInfo, error) { |