Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
14 lines
266 B
Rust
14 lines
266 B
Rust
use crate::app::SharedApp;
|
|
|
|
use super::DomainEvents;
|
|
|
|
pub trait DomainEventsExt {
|
|
fn domain_events(&self) -> DomainEvents;
|
|
}
|
|
|
|
impl DomainEventsExt for SharedApp {
|
|
fn domain_events(&self) -> DomainEvents {
|
|
DomainEvents::new(self.nats.clone())
|
|
}
|
|
}
|