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

chore: remove unused function in OnlineBlobProvider #875

Conversation

samlaf
Copy link
Contributor

@samlaf samlaf commented Dec 20, 2024

Not sure why this was here, as its a private function that wasnt used anywhere in the crate anyways.

Also confused me for a while in the beginning, as I kept wondering why the BlobProvider trait (which is meant to be implemented by client structs) was being implemented by a host struct (OnlineBlobProvider). In my mind client and host traits should be separate afaiu?

…rovider

Not sure why this was here, as its a private function that wasnt used anywhere in the crate.

Also confused me for a while in the beginning, as I kept wondering why the BlobProvider trait (which is meant to be implemented by ClientProvider) was being implemented by a host struct (OnlineBlobProvider). In my mind client and host traits should be separate afaiu.
Needed so that vscode's document formatter respects the rules in rustfmt.toml (which require nightly toolchain)
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.6%. Comparing base (8f21eff) to head (04358b3).
Report is 5 commits behind head on main.

Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

rust-toolchain.toml Outdated Show resolved Hide resolved
…gs.json

this is just to specify for vscode to use nightly version of rustfmt
Copy link
Collaborator

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Good catch actually - the host doesn't even need the logic provided by the BlobProvider trait so this can be removed.

@refcell refcell added this pull request to the merge queue Jan 8, 2025
Merged via the queue into op-rs:main with commit 3e88447 Jan 8, 2025
16 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