Skip to content

Commit

Permalink
close results in exports in sql resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anshul committed Jan 2, 2025
1 parent 9fdb50b commit 18ed69b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/resolvers/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ func (r *sqlResolver) generalExport(ctx context.Context, w io.Writer, filename s
if err != nil {
return err
}
defer res.Close()

meta := make([]*runtimev1.MetricsViewColumn, len(res.Schema.Fields))
for i, f := range res.Schema.Fields {
Expand Down

0 comments on commit 18ed69b

Please sign in to comment.