grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
22.71k stars 3.3k forks source link

chore: adjusted SegmentWriter to the reader conversion #13342

Open vlad-diachenko opened 4 days ago

vlad-diachenko commented 4 days ago

What this PR does / why we need it:

adjusted Client to convert SegmentWriter to the reader using the new function that uses buffer pool.

Special notes for your reviewer: addresses comment https://github.com/grafana/loki/pull/13315#discussion_r1653050375

Checklist

cyriltovena commented 3 days ago

that's messy we need the destination branch rebased off main