Skip to content

Commit

Permalink
add missing Rows.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
vroldanbet committed Jul 11, 2023
1 parent 6b28804 commit 95cd99f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/datastore/postgres/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ func (pgd *pgDatastore) loadChanges(ctx context.Context, revisions []revisionWit
return nil, fmt.Errorf("unable to load changes for XID: %w", err)
}

defer changes.Close()

tracked := common.NewChanges(revisionKeyFunc)
for changes.Next() {
nextTuple := &core.RelationTuple{
Expand Down

0 comments on commit 95cd99f

Please sign in to comment.