Skip to content

Commit

Permalink
ClusterStore: fixed incorrect usage of strong-mq
Browse files Browse the repository at this point in the history
Fixed ClusterStore.publish to publish the message with an empty topic.
The channel name is already stored in the message sent.

This change fixes the problem where sending a message to a channel
"disconnect:{random-id}" crashed the application with assertion error,
because strong-mq does not allow ':' in topic names.
  • Loading branch information
Miroslav Bajtos committed Sep 23, 2013
1 parent d54cf04 commit 984fd7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cluster-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = function(io) {
name: name,
args: args
};
this._pub.publish(data, name);
this._pub.publish(data);
};

/**
Expand Down

0 comments on commit 984fd7d

Please sign in to comment.