Skip to content

Commit

Permalink
use IntoFuture now that it's stable (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
demoray authored Jan 25, 2023
1 parent c1fde99 commit b30e6b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ homepage = "https://github.com/microsoft/avml"
repository = "https://github.com/microsoft/avml"
readme = "README.md"
edition = "2021"
rust-version = "1.64.0"

[features]
default = ["put", "blobstore"]
Expand Down
3 changes: 1 addition & 2 deletions src/upload/blobstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl BlobUploader {

let block_list = BlockList { blocks };

self.client.put_block_list(block_list).into_future().await?;
self.client.put_block_list(block_list).await?;

Ok(())
}
Expand Down Expand Up @@ -330,7 +330,6 @@ impl BlobUploader {
let result = client
.put_block(upload_chunk.id, upload_chunk.data)
.hash(hash)
.into_future()
.await;

// as soon as any error is seen (after retrying), bail out and stop other uploaders
Expand Down

0 comments on commit b30e6b4

Please sign in to comment.