-
Notifications
You must be signed in to change notification settings - Fork 247
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
Azure storage queue: Get Messages implementation #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good, except for my comment about version number bumping. I wonder how much more we should implement before trying to get the auto generated REST code integrated.
sdks/auth_aad/Cargo.toml
Outdated
@@ -29,8 +29,8 @@ async-trait = "0.1.36" | |||
|
|||
[dev-dependencies] | |||
tokio = { version = "0.2", features = ["macros"] } | |||
azure_storage = { version = "0.1", path = "../storage" } | |||
azure_storage = { version = "0.2", path = "../storage" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't bump this. We haven't even shipped 0.1 yet so we'd essentially be skipping a 0.1 release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I'll revert the version.
sdks/storage/Cargo.toml
Outdated
@@ -1,6 +1,6 @@ | |||
[package] | |||
name = "azure_storage" | |||
version = "0.1.0" | |||
version = "0.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
#[macro_use] | ||
extern crate log; | ||
use azure_storage::core::prelude::*; | ||
use azure_storage::queue::prelude::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good example of why I think we should think about the storage crate's public API. It's a bit weird to have to export both core and queue's prelude modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it's because right now the storage client comes from the storage core crate and the storage queue client trait comes from the storage queue crate.
I agree, some rearranging is overdue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Only one question
@@ -4,12 +4,13 @@ | |||
"uses": [ | |||
"crate::prelude::*", | |||
"crate::responses::*", | |||
"azure_core::errors::{check_status_extract_headers_and_body, AzureError}", | |||
"azure_core::prelude::*", | |||
"azure_sdk_core::errors::{check_status_extract_headers_and_body, AzureError}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The crate is now azure_core, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my bad, I've overwritten the updates in the merge 🤦♂️ .
I've pushed the correct imports now.
New implementations
Breaking change
The type for the
VisibilityTimeout
has been changed fromu64
to the more pertinentstd::time::Duration
.To migrate please use
Duration::from_secs(num)
.ie from:
to