feat: v2 rewrite — hexagonal arch, ActivityPub federation, NATS, deployment-ready #1

Merged
GKaszewski merged 334 commits from v2 into master 2026-05-16 09:42:43 +00:00
Showing only changes of commit 9bda23f187 - Show all commits

View File

@@ -113,6 +113,17 @@ impl MessageSource for NatsMessageSource {
}
};
// Delete any existing push consumer with this name — can't reuse as pull.
// No-op if it doesn't exist or is already a pull consumer.
if let Ok(info) = stream.consumer_info(CONSUMER_NAME).await {
if info.config.deliver_subject.is_some() {
tracing::info!(
"deleting old push consumer '{CONSUMER_NAME}', replacing with pull"
);
let _ = stream.delete_consumer(CONSUMER_NAME).await;
}
}
let consumer = match stream
.get_or_create_consumer(
CONSUMER_NAME,