Add a nice warning
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Alex 2021-03-11 18:50:32 +01:00
parent db7a9d4948
commit fae5104a2c
1 changed files with 5 additions and 2 deletions

View File

@ -433,9 +433,12 @@ where
// We don't request those items from them, they will send them.
// We only bother with pushing items that differ
}
MerkleNode::Leaf(ik, _) => {
MerkleNode::Leaf(ik, ivhash) => {
// Just send that item directly
if let Some(val) = self.data.store.get(ik)? {
if let Some(val) = self.data.store.get(&ik[..])? {
if blake2sum(&val[..]) != ivhash {
warn!("Hashes differ between stored value and Merkle tree, key: {:?} (if your server is very busy, don't worry, this happens when the Merkle tree can't be updated fast enough)", ik);
}
todo_items.push(val.to_vec());
}
}