Refactor counter increment sites for TwoPhaseCounter.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-24 00:15:33 +00:00
parent 05bb1f4ac7
commit 0fcb072239
21 changed files with 129 additions and 117 deletions

View File

@@ -126,8 +126,9 @@ impl Data {
if let SendingEvent::Pdu(value) = event {
key.extend(value.as_ref());
} else {
let count = self.services.globals.next_count().unwrap();
key.extend(&count.to_be_bytes());
let count = self.services.globals.next_count();
let count = count.to_be_bytes();
key.extend(&count);
}
key