Skip to main content

Mountain/IPC/DevLog/
DedupState.rs

1
2//! Consecutive-duplicate suppression buffer used by the
3//! `dev_log!` macro under `Trace=short`. Holds the last logged
4//! key + a repeat count; the macro flushes a `(xN)` tail when
5//! the key changes.
6
7use std::sync::Mutex;
8
9pub struct Struct {
10	pub LastKey:String,
11
12	pub Count:u64,
13}
14
15pub static DEDUP:Mutex<Struct> = Mutex::new(Struct { LastKey:String::new(), Count:0 });