fix: handle FollowAccepted in NATS subject router

This commit is contained in:
2026-05-13 01:23:08 +02:00
parent faeac18126
commit 1b41e7c1f5

View File

@@ -13,6 +13,7 @@ pub fn event_to_subject(prefix: &str, event: &DomainEvent) -> String {
DomainEvent::WatchlistEntryAdded { .. } | DomainEvent::WatchlistEntryRemoved { .. } => { DomainEvent::WatchlistEntryAdded { .. } | DomainEvent::WatchlistEntryRemoved { .. } => {
unreachable!("watchlist events are not published to NATS") unreachable!("watchlist events are not published to NATS")
} }
DomainEvent::FollowAccepted { .. } => "follow.accepted",
}; };
format!("{prefix}.{suffix}") format!("{prefix}.{suffix}")
} }