mirror of
https://github.com/bertptrs/tracing-mutex.git
synced 2025-12-25 20:50:32 +01:00
Fix unintentional exponential order ids
This commit is contained in:
@@ -49,7 +49,7 @@ where
|
||||
|
||||
let order = *self.ord.entry(n).or_insert_with(|| {
|
||||
let order = *next_ord;
|
||||
*next_ord += next_ord.checked_add(1).expect("Topological order overflow");
|
||||
*next_ord = next_ord.checked_add(1).expect("Topological order overflow");
|
||||
order
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user