mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-05 14:51:45 +00:00
1 parent
4496cf2d5b
commit
5192927a53
9 files changed
+205
-180
No files matched your search
@@ -1000,7 +1000,7 @@ where
|
||||
|
||||
//TODO: this is an ABA
|
||||
fn increment(db: &Arc<Map>, key: &[u8]) {
|
||||
let old = db.get(key);
|
||||
let old = db.get_blocking(key);
|
||||
let new = utils::increment(old.ok().as_deref());
|
||||
db.insert(key, &new);
|
||||
}
|
||||
Reference in new issue
Block a user