Skip to content

Commit

Permalink
Merge pull request #658 from LayerXcom/fix-frame-azure-client
Browse files Browse the repository at this point in the history
azure-client修正
  • Loading branch information
jkcomment authored Sep 14, 2021
2 parents 735b067 + 9b7c0fe commit 48a0f76
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frame/azure-client/src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ impl BlobClient {
&self,
container_name: impl Into<String>,
blob_name: impl Into<String>,
blob_size: u64,
) -> anyhow::Result<String> {
let blob_client = self
.client
Expand All @@ -61,7 +62,7 @@ impl BlobClient {

let response = blob_client
.get()
.range(Range::new(0, 2048)) // TODO: Fix range nums
.range(Range::new(0, blob_size)) // TODO: Fix range nums
.execute()
.await
.map_err(|err| anyhow!(err))?;
Expand Down Expand Up @@ -175,8 +176,9 @@ mod tests {
.await
.unwrap();

let blob_size: u64 = 1024;
// putしたデータを取得できることを確認する
let res = client.get("emulcont", "test.txt").await.unwrap();
let res = client.get("emulcont", "test.txt", blob_size).await.unwrap();
assert_eq!(data, res);
}
}

0 comments on commit 48a0f76

Please sign in to comment.