From dd48d268ec6aae42ac4cb022b03984d4a3eb3c45 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Wed, 31 Jul 2019 14:33:00 +0200 Subject: [PATCH] chore: promisify pubsub start and stop (#392) --- src/pubsub.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pubsub.js b/src/pubsub.js index 5c6e650573..297a54b76b 100644 --- a/src/pubsub.js +++ b/src/pubsub.js @@ -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)) } }