feat(wiring): wire PosterSyncHandler into event channel in main.rs

This commit is contained in:
2026-05-04 12:44:53 +02:00
parent 5c70b8b8be
commit 5689db0ad7
2 changed files with 48 additions and 10 deletions

View File

@@ -81,6 +81,15 @@ impl EventWorker {
}
}
pub struct NoopEventPublisher;
#[async_trait]
impl EventPublisher for NoopEventPublisher {
async fn publish(&self, _event: &DomainEvent) -> Result<(), DomainError> {
Ok(())
}
}
pub fn create_event_channel(
config: EventPublisherConfig,
handlers: Vec<Box<dyn EventHandler>>,