Skip to content

Commit

Permalink
nats url: Revert to using env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed Nov 8, 2024
1 parent 5922705 commit e8f9504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importer-api/src/utils/stan.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const natsStreaming = require('node-nats-streaming')
const { HOSTNAME, NATS_TOKEN } = process.env
const { HOSTNAME, NATS_URI, NATS_TOKEN } = process.env

const stan = natsStreaming.connect('importer-nats', HOSTNAME, {
url: 'nats://nats-importer:4222',
url: NATS_URI,
token: NATS_TOKEN,
maxReconnectAttempts: -1,
waitOnFirstConnect: true,
Expand Down

0 comments on commit e8f9504

Please sign in to comment.