mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(svc): authenticate to nats with the configured token (#2581)
This commit is contained in:
1 parent
45530ebbf5
commit
d46c8d49c6
12 files changed
+27
-8
No files matched your search
@@ -14,7 +14,8 @@ use types::SERVICE_NAME;
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
fluxer_svc::init_tracing();
|
||||
let config = ServiceConfig::from_env()?;
|
||||
let transport = NatsTransport::connect(&config.nats_url).await?;
|
||||
let transport =
|
||||
NatsTransport::connect(&config.nats_url, config.nats_auth_token.as_deref()).await?;
|
||||
tracing::info!(
|
||||
service = SERVICE_NAME,
|
||||
mode = ?config.mode,
|
||||
|
||||
Reference in new issue
Block a user