Skip to content

Commit

Permalink
Try nats url without protocol part
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed Nov 8, 2024
1 parent ca33317 commit 2211380
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://nats-importer:nats-importer',
url: 'nats-importer:nats-importer',
port: 4222,
token: NATS_TOKEN,
maxReconnectAttempts: -1,
Expand Down

0 comments on commit 2211380

Please sign in to comment.