feat: wire NATS event publisher into bootstrap + worker

- Both binaries connect to NATS on startup, ensure JetStream stream
- EventPublisherAdapter<NatsTransport> replaces LogEventPublisher
- nats_url config with default nats://localhost:4222
- Deleted bootstrap's LogEventPublisher (no longer needed)
This commit is contained in:
2026-05-31 11:53:51 +02:00
parent 0e9911ebfc
commit 838ed9a3f8
11 changed files with 35 additions and 36 deletions

View File

@@ -100,9 +100,7 @@ impl MessageSource for NatsMessageSource {
if let Ok(info) = stream.consumer_info(CONSUMER_NAME).await
&& info.config.deliver_subject.is_some()
{
tracing::info!(
"deleting old push consumer '{CONSUMER_NAME}', replacing with pull"
);
tracing::info!("deleting old push consumer '{CONSUMER_NAME}', replacing with pull");
let _ = stream.delete_consumer(CONSUMER_NAME).await;
}