Skip to content

Commit

Permalink
nats url: protocol and hots but separate port value
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed Nov 8, 2024
1 parent 2211380 commit 5ece12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion importer-api/src/utils/stan.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const natsStreaming = require('node-nats-streaming')
const { HOSTNAME, NATS_TOKEN } = process.env

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

0 comments on commit 5ece12a

Please sign in to comment.