Skip to content

Commit bda3946

Browse files
authored
Merge pull request arobson#14 from swanest/master
fix(connection):typo error
2 parents 693593c + ba417da commit bda3946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Broker.prototype.addConnection = function( options ) {
8585
}.bind( this ) );
8686
connection.on( "unreachable", function() {
8787
this.emit( "unreachable", connection );
88-
this.emit( name, ".connection.unreachable" );
88+
this.emit( name + ".connection.unreachable" );
8989
this.clearAckInterval();
9090
}.bind( this ) );
9191
connection.on( "return", function(raw) {
@@ -196,7 +196,7 @@ Broker.prototype.handle = function( messageType, handler, queueName, context ) {
196196
queue: queueName || "*",
197197
context: context,
198198
autoNack: this.autoNack,
199-
handler: handler
199+
handler: handler
200200
}
201201
} else {
202202
options = messageType;

0 commit comments

Comments
 (0)