Skip to content

Commit

Permalink
perf: Restperf should stream results while parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Dec 5, 2024
1 parent e2c84fc commit 9c1cce2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/tools/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ func FetchRestPerfDataStream(client *Client, href string, processBatch func([]Pe
if err := processBatch([]PerfRecord{p}); err != nil {
return err
}
} else {
// Call processBatch with an empty list to handle no records scenario
if err := processBatch([]PerfRecord{}); err != nil {
return err
}
}

prevLink = nextLink
Expand Down

0 comments on commit 9c1cce2

Please sign in to comment.