@@ -59,7 +59,7 @@ impl Data {
|
||||
|
||||
for (i, short) in self
|
||||
.eventid_shorteventid
|
||||
.multi_get(keys.iter())
|
||||
.get_batch_blocking(keys.iter())
|
||||
.iter()
|
||||
.enumerate()
|
||||
{
|
||||
|
||||
@@ -326,7 +326,7 @@ pub(super) fn pdu_count(pdu_id: &[u8]) -> PduCount {
|
||||
|
||||
//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