Skip to content

Commit

Permalink
Merge pull request #412 from caiobessa/master
Browse files Browse the repository at this point in the history
deleting the workaround because the bug was fixed in version v1.0.1
  • Loading branch information
icebob authored Nov 8, 2018
2 parents 7a4fc77 + 0d0f389 commit 8b54fea
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/transporters/nats.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,12 @@ class NatsTransporter extends Transporter {
client.on("connect", () => {
this.client = client;
this.logger.info("NATS client is connected.");

//Woraround, while https://github.com/nats-io/node-nats/issues/229 will be fixed in NATS library.
if (client.stream)
client.stream.setNoDelay(true);

this.onConnected().then(resolve);
});

/* istanbul ignore next */
client.on("reconnect", () => {
this.logger.info("NATS client is reconnected.");

//Woraround, while https://github.com/nats-io/node-nats/issues/229 will be fixed in NATS library.
if (client.stream)
client.stream.setNoDelay(true);

this.onConnected(true);
});

Expand Down

0 comments on commit 8b54fea

Please sign in to comment.