Skip to content

Commit

Permalink
parallelize topic sub/unsub handles
Browse files Browse the repository at this point in the history
  • Loading branch information
behrad committed Jul 1, 2017
1 parent 7e1fdeb commit e5d9c8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/handlers/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function handleSubscribe (client, packet, done) {
var subs = packet.subscriptions
var granted = []

broker._series(
broker._parallel(
new SubscribeState(client, packet, done, granted),
doSubscribe,
subs,
Expand Down
2 changes: 1 addition & 1 deletion lib/handlers/unsubscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function handleUnsubscribe (client, packet, done) {

function actualUnsubscribe (client, packet, done) {
var broker = client.broker
broker._series(
broker._parallel(
new UnsubscribeState(client, packet, done, null),
doUnsubscribe,
packet.unsubscriptions,
Expand Down

0 comments on commit e5d9c8a

Please sign in to comment.