diff options
Diffstat (limited to 'src/api/event_hub.rs')
| -rw-r--r-- | src/api/event_hub.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/event_hub.rs b/src/api/event_hub.rs index b66a2157..42cf47a2 100644 --- a/src/api/event_hub.rs +++ b/src/api/event_hub.rs @@ -36,4 +36,11 @@ impl EventHub { .cloned() .collect() } + + pub fn current_sequence(&self) -> u64 { + let Ok(state) = self.inner.lock() else { + return 0; + }; + state.next_sequence + } } |
