getsentry / vroom

Other
17 stars 3 forks source link

fix(flamegraphs): Do not iterate unclosed channel #489

Closed Zylphrex closed 3 months ago

Zylphrex commented 3 months ago

The channel only gets closed at the end of the function so iterating it will never terminate and just wait for the request to timeout. Since we know exactly how many values will be in the channel, iterate exactly that many times.