I was tired yesterday

This commit is contained in:
Alex Auvolat
2021-02-24 11:05:59 +01:00
parent a52ab69640
commit 09fd6ea7f0
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -433,7 +433,7 @@ where
let removed = self.store.transaction(|txn| {
if let Some(cur_v) = txn.get(k)? {
if cur_v == v {
txn.remove(v)?;
txn.remove(k)?;
return Ok(true);
}
}