Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

add count_blobs example #145

Merged
merged 2 commits into from
Sep 25, 2019
Merged

add count_blobs example #145

merged 2 commits into from
Sep 25, 2019

Conversation

ctaggart
Copy link
Contributor

I wrote this example to see how to page through the results with the next marker. It pages through the results and returns the total count of blobs.

To test it, I ran a create_blobs.rs to populate a container with something more than 5000 results so that it would be forced to page.

@ctaggart
Copy link
Contributor Author

It works, but I'm not sure if this is the most ergonomic rust code and would appreciate review and better alternatives. I find the futures 0.1 really hard to deal with and I'm really looking forward to standard futures #140.

@ctaggart
Copy link
Contributor Author

I see there is a stream_list_blobs that may be make this easier. See #87.

@MindFlavor
Copy link
Owner

Very nice! Thank you!

@MindFlavor MindFlavor merged commit 48f8e14 into MindFlavor:master Sep 25, 2019
@ctaggart ctaggart deleted the count_blobs branch September 25, 2019 18:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants