aboutsummaryrefslogtreecommitdiff
path: root/src/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/block.rs')
-rw-r--r--src/block.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/block.rs b/src/block.rs
index 1e4c52dc..6add24b7 100644
--- a/src/block.rs
+++ b/src/block.rs
@@ -242,14 +242,14 @@ impl BlockManager {
if need_nodes.len() > 0 {
let put_block_message = self.read_block(hash).await?;
- for resp in rpc_call_many(
+ let put_responses = rpc_call_many(
garage.system.clone(),
&need_nodes[..],
put_block_message,
BLOCK_RW_TIMEOUT,
)
- .await
- {
+ .await;
+ for resp in put_responses {
resp?;
}
}