_commit was not incremented when updating. forgott an .await. typicall

This commit is contained in:
Sebastian Moser
2022-11-02 20:12:18 +01:00
parent e4ce4cfc37
commit 626f9eda58

View File

@@ -110,7 +110,7 @@ impl Itemstore {
}; };
commit_num += 1; commit_num += 1;
tr.set(commit_key, commit_num.to_be_bytes()); tr.set(commit_key, commit_num.to_be_bytes()).await;
keys = keys.into_iter().unique().collect::<Vec<Vec<u8>>>(); keys = keys.into_iter().unique().collect::<Vec<Vec<u8>>>();
tr.set(format!("{}", id).into_bytes(), encode(keys)).await; tr.set(format!("{}", id).into_bytes(), encode(keys)).await;