Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

implemented replay handling

  • Loading branch information...
commit 1c9b4373f9f9d369e62ef2d50a4e4f3f5120ac4d 1 parent ce4c76f
@adrai authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/adapters/pub.js
  2. +1 −1  lib/adapters/sub.js
View
2  lib/adapters/pub.js
@@ -47,7 +47,7 @@ var PubAdapter = function(hub, callback) {
if (!this.hub.options.channel){
this.hub.connection.exchange('amq.fanout', {passive: true}, handle);
} else {
- this.hub.connection.exchange(this.hub.options.channel, {type: 'fanout'}, handle);
+ this.hub.connection.exchange(this.hub.options.channel, {type: 'fanout', autoDelete: true}, handle);
}
};
View
2  lib/adapters/sub.js
@@ -47,7 +47,7 @@ var SubAdapter = function(hub, callback) {
if (!this.hub.options.channel){
this.hub.connection.exchange('amq.fanout', {passive: true}, handle);
} else {
- this.hub.connection.exchange(this.hub.options.channel, {type: 'fanout'}, handle);
+ this.hub.connection.exchange(this.hub.options.channel, {type: 'fanout', autoDelete: true}, handle);
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.