mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(svc): authenticate to nats with the configured token (#2581)
This commit is contained in:
@@ -13,7 +13,8 @@ use shard_impl::UsersShard;
|
||||
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 = config.service_name,
|
||||
|
||||
Reference in New Issue
Block a user