diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-22 20:06:12 +0000 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-22 20:06:12 +0000 |
commit | 2556a1e3835cc8ba71eca27182bca4a3fa4b4083 (patch) | |
tree | ad77d651560f451b6ca92ef048ff4afa926373e8 /src/block.rs | |
parent | 231cb32955080557b05c7dde7d7adee664457e0e (diff) | |
download | garage-2556a1e3835cc8ba71eca27182bca4a3fa4b4083.tar.gz garage-2556a1e3835cc8ba71eca27182bca4a3fa4b4083.zip |
I'm stupid though
Diffstat (limited to 'src/block.rs')
-rw-r--r-- | src/block.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block.rs b/src/block.rs index 6c785f89..bc3e9292 100644 --- a/src/block.rs +++ b/src/block.rs @@ -280,8 +280,10 @@ impl BlockManager { let mut need_nodes = vec![]; for (node, needed) in who.into_iter().zip(who_needs.iter()) { match needed { - Ok(Message::NeedBlockReply(true)) => { - need_nodes.push(node); + Ok(Message::NeedBlockReply(needed)) => { + if *needed { + need_nodes.push(node); + } } Err(e) => { return Err(Error::Message(format!( |