feat(base): Add EventCacheStoreLockGuard::clear_dirty.

This commit is contained in:
Ivan Enderlin
2025-11-11 17:38:01 +01:00
parent c5893f882c
commit 3d5b32494e

View File

@@ -110,6 +110,16 @@ pub struct EventCacheStoreLockGuard<'a> {
store: &'a DynEventCacheStore,
}
impl<'a> EventCacheStoreLockGuard<'a> {
/// Forward to [`CrossProcessLockGuard::clear_dirty`].
///
/// This is an associated method to avoid colliding with the [`Deref`]
/// implementation.
pub fn clear_dirty(this: &Self) {
this.cross_process_lock_guard.clear_dirty();
}
}
#[cfg(not(tarpaulin_include))]
impl fmt::Debug for EventCacheStoreLockGuard<'_> {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {