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

move to using azure_core::Body instead of Bytes #943

Merged
merged 2 commits into from
Jul 19, 2022

Conversation

bmc-msft
Copy link
Contributor

While this doesn't actually enable users to AsyncRead+AsyncSync yet, this is a step towards that.

Brian Caswell added 2 commits July 18, 2022 23:18
While this doesn't actually enable users to AsyncRead+AsyncSync yet, this is a step towards that.
@@ -13,6 +13,19 @@ pub enum Body {
SeekableStream(Box<dyn SeekableStream>),
}

impl Body {
pub fn len(&self) -> usize {
Copy link
Contributor

Choose a reason for hiding this comment

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

While these functions are pretty self-explanatory, I think it's a good habit to always add documentation for all public methods.

@rylev rylev merged commit ba63d7d into Azure:main Jul 19, 2022
@bmc-msft bmc-msft deleted the move-to-using-body-instead-of-bytes branch July 20, 2022 02:06
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.

azure_storage should use azure_core::Body (or some variant) instead of Bytes
2 participants