Skip to content

Commit

Permalink
chore: promisify pubsub start and stop (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and jacobheun committed Jul 31, 2019
1 parent 99a5359 commit dd48d26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ module.exports = (node, Pubsub) => {
return pubsub.setMaxListeners(n)
},

start: (cb) => pubsub.start(cb),
start: promisify((cb) => pubsub.start(cb)),

stop: (cb) => pubsub.stop(cb)
stop: promisify((cb) => pubsub.stop(cb))
}
}

0 comments on commit dd48d26

Please sign in to comment.