use netapp streaming body #343
2 changed files with 1 additions and 5 deletions
|
@ -366,10 +366,7 @@ pub async fn handle_upload_part_copy(
|
||||||
// we need to insert that data as a new block.
|
// we need to insert that data as a new block.
|
||||||
async move {
|
async move {
|
||||||
if must_upload {
|
if must_upload {
|
||||||
garage2
|
garage2.block_manager.rpc_put_block(final_hash, data).await
|
||||||
.block_manager
|
|
||||||
.rpc_put_block(final_hash, data.into())
|
|
||||||
.await
|
|
||||||
} else {
|
} else {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -450,7 +450,6 @@ fn body_from_blocks_range(
|
||||||
let garage = garage.clone();
|
let garage = garage.clone();
|
||||||
async move {
|
async move {
|
||||||
let data = garage.block_manager.rpc_get_block(&block.hash).await?;
|
let data = garage.block_manager.rpc_get_block(&block.hash).await?;
|
||||||
let data = Bytes::from(data);
|
|
||||||
let start_in_block = if true_offset > begin {
|
let start_in_block = if true_offset > begin {
|
||||||
0
|
0
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue