chore: update pubsub implementations (#493)

This commit is contained in:
Vasco Santos
2019-12-03 11:29:20 +01:00
committed by Jacob Heun
parent 8da9fc97d4
commit 9a6e07d70b
4 changed files with 7 additions and 7 deletions

View File

@ -83,12 +83,12 @@ module.exports = (node, Pubsub, config) => {
* @param {string} topic
* @returns {Array<string>}
*/
getPeersSubscribed: (topic) => {
getSubscribers: (topic) => {
if (!node.isStarted() && !pubsub.started) {
throw errCode(new Error(messages.NOT_STARTED_YET), codes.PUBSUB_NOT_STARTED)
}
return pubsub.getPeersSubscribed(topic)
return pubsub.getSubscribers(topic)
},
setMaxListeners (n) {