mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
Refactor counter increment sites for TwoPhaseCounter.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
05bb1f4ac7
commit
0fcb072239
21 files changed
+129
-117
No files matched your search
@@ -63,8 +63,8 @@ pub async fn update(
|
||||
return Err!(Request(InvalidParam("Account data doesn't have all required fields.")));
|
||||
}
|
||||
|
||||
let count = self.services.globals.next_count().unwrap();
|
||||
let roomuserdataid = (room_id, user_id, count, &event_type);
|
||||
let count = self.services.globals.next_count();
|
||||
let roomuserdataid = (room_id, user_id, *count, &event_type);
|
||||
self.db
|
||||
.roomuserdataid_accountdata
|
||||
.put(roomuserdataid, Json(data));
|
||||
|
||||
Reference in new issue
Block a user