Skip to content

Commit

Permalink
Revert "parallelize topic sub/unsub handles"
Browse files Browse the repository at this point in the history
This reverts commit e5d9c8a.
  • Loading branch information
mcollina committed Aug 7, 2017
1 parent 185ab4b commit 25ec7dd
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 @@ -23,7 +23,7 @@ function handleSubscribe (client, packet, done) {
var subs = packet.subscriptions
var granted = []

broker._parallel(
broker._series(
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 @@ -37,7 +37,7 @@ function handleUnsubscribe (client, packet, done) {

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

0 comments on commit 25ec7dd

Please sign in to comment.