Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 748cf2e

Browse files
pubsub.peers: do not throw on missing subscription
1 parent 9611f6d commit 748cf2e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/api/pubsub.js

-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ module.exports = (send) => {
7474
send.andTransform(request, stringlistToArray, callback)
7575
}),
7676
peers: promisify((topic, callback) => {
77-
if (!subscriptions[topic]) {
78-
return callback(new Error(`Not subscribed to '${topic}'`))
79-
}
80-
8177
const request = {
8278
path: 'pubsub/peers',
8379
args: [topic]

0 commit comments

Comments
 (0)