Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for WriterTo in TimingReader #121

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

fpetkovski
Copy link
Contributor

This commit adds support for the WriterTo interface in the TimingReader so that it can be used efficiently in io.Copy.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Verification

@fpetkovski fpetkovski requested a review from pracucci June 11, 2024 06:31
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job, LGTM!

@MichaHoffmann
Copy link
Contributor

If r implements Seeker then we wont ever return a writerTo, right? Is that problematic?

@fpetkovski
Copy link
Contributor Author

fpetkovski commented Sep 7, 2024

We merge this for now and we can add all combinations later. I don't see problems when querying a Google Storage bucket.

This commit adds support for the WriterTo interface in the TimingReader
so that it can be used efficiently in io.Copy.

Signed-off-by: Filip Petkovski <[email protected]>
Signed-off-by: Filip Petkovski <[email protected]>
@MichaHoffmann MichaHoffmann merged commit 7adf08b into thanos-io:main Sep 7, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants