update on the server works now

This commit is contained in:
Sebastian Moser
2022-10-24 22:29:38 +02:00
parent 202f493eba
commit 2a0a4867f9
3 changed files with 54 additions and 53 deletions

View File

@@ -91,8 +91,7 @@ impl Itemstore {
};
for field in new_item {
let mut key = id.to_be_bytes().to_vec();
key.push(':' as u8);
let mut key = format!("{}:", id).into_bytes();
key.extend(field[0].clone());
let val = field[1].clone();
keys.push(field[0].clone());