docbox-core 0.13.2

Docbox core business logic and functionality
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::EventPublisher;

/// No-op event publisher that doesn't send the event anywhere. For
/// tenants that don't support event publishing
#[derive(Default, Clone)]
pub struct NoopEventPublisher;

impl EventPublisher for NoopEventPublisher {
    fn publish_event(&self, event: super::TenantEventMessage) {
        tracing::debug!(?event, "no-op tenant event");
    }
}