Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
implemented replay handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Raiano committed Mar 27, 2012
1 parent ce4c76f commit 1c9b437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/adapters/pub.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var PubAdapter = function(hub, callback) {
if (!this.hub.options.channel){ if (!this.hub.options.channel){
this.hub.connection.exchange('amq.fanout', {passive: true}, handle); this.hub.connection.exchange('amq.fanout', {passive: true}, handle);
} else { } 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);
} }


}; };
Expand Down
2 changes: 1 addition & 1 deletion lib/adapters/sub.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var SubAdapter = function(hub, callback) {
if (!this.hub.options.channel){ if (!this.hub.options.channel){
this.hub.connection.exchange('amq.fanout', {passive: true}, handle); this.hub.connection.exchange('amq.fanout', {passive: true}, handle);
} else { } 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);
} }


}; };
Expand Down

0 comments on commit 1c9b437

Please sign in to comment.