itemstore.update() now completely deletes the item. before adding a key, that already existed some time, would not work, also handle_mize_message() returns after one if-statement triggers
This commit is contained in:
@@ -124,7 +124,10 @@ impl Itemstore {
|
||||
if let Some(key_index) = old_keys.iter().position(|x| *x == key.clone()){
|
||||
old_keys.remove(key_index);
|
||||
}
|
||||
tr.del(key).await?;
|
||||
let mut store_key = update.id.clone().into_bytes();
|
||||
store_key.push(':' as u8);
|
||||
store_key.extend(key);
|
||||
tr.del(store_key).await?;
|
||||
} else {
|
||||
tr.set(store_key.clone(), new_val).await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user