feat: processed-event ledger, idempotent dispatch
This commit is contained in:
@@ -112,6 +112,10 @@ impl ImageCleanupHandler {
|
||||
|
||||
#[async_trait]
|
||||
impl EventHandler for ImageCleanupHandler {
|
||||
fn name(&self) -> &'static str {
|
||||
"image_cleanup"
|
||||
}
|
||||
|
||||
async fn handle(&self, event: &DomainEvent) -> Result<(), DomainError> {
|
||||
let poster_path = match event {
|
||||
DomainEvent::MovieDeleted { poster_path, .. } => poster_path,
|
||||
|
||||
Reference in New Issue
Block a user