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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user