Skip to content

Commit

Permalink
Add the acual close for the iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
kostya9 committed Mar 3, 2023
1 parent 9bc9066 commit a498555
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/traceql/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (e *Engine) Execute(ctx context.Context, searchReq *tempopb.SearchRequest,
return nil, err
}
iterator := fetchSpansResponse.Results
defer iterator.Close()

res := &tempopb.SearchResponse{
Traces: nil,
Expand Down

0 comments on commit a498555

Please sign in to comment.