Skip to content

Commit cc566c8

Browse files
authored
Merge branch 'master' into master
2 parents c759f38 + 5ef5a35 commit cc566c8

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ js-libp2p-pubsub
44
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
55
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://libp2p.io/)
66
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
7+
[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)
78
[![Coverage Status](https://coveralls.io/repos/github/libp2p/js-libp2p-pubsub/badge.svg?branch=master)](https://coveralls.io/github/libp2p/js-libp2p-pubsub?branch=master)
89
[![Travis CI](https://travis-ci.org/libp2p/js-libp2p-pubsub.svg?branch=master)](https://travis-ci.org/libp2p/js-libp2p-pubsub)
910
[![Circle CI](https://circleci.com/gh/libp2p/js-libp2p-pubsub.svg?style=svg)](https://circleci.com/gh/libp2p/js-libp2p-pubsub)

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,25 @@
4141
},
4242
"homepage": "https://github.com/libp2p/js-libp2p-pubsub#readme",
4343
"devDependencies": {
44-
"aegir": "^18.0.3",
44+
"aegir": "^18.2.1",
4545
"benchmark": "^2.1.4",
4646
"chai": "^4.2.0",
4747
"chai-spies": "^1.0.0",
4848
"dirty-chai": "^2.0.1",
4949
"libp2p": "~0.24.4",
50-
"libp2p-secio": "~0.11.0",
51-
"libp2p-spdy": "~0.13.1",
50+
"libp2p-secio": "~0.11.1",
51+
"libp2p-spdy": "~0.13.3",
5252
"libp2p-tcp": "~0.13.0",
5353
"lodash": "^4.17.11",
5454
"peer-id": "~0.12.2",
5555
"peer-info": "~0.15.1"
5656
},
5757
"dependencies": {
58-
"async": "^2.6.1",
58+
"async": "^2.6.2",
5959
"bs58": "^4.0.1",
6060
"debug": "^4.1.1",
6161
"err-code": "^1.1.2",
62-
"length-prefixed-stream": "^1.6.0",
62+
"length-prefixed-stream": "^2.0.0",
6363
"libp2p-crypto": "^0.16.1",
6464
"protons": "^1.0.1",
6565
"pull-length-prefixed": "^1.3.1",

src/message/rpc.proto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ message RPC {
66
77
message SubOpts {
88
optional bool subscribe = 1; // subscribe or unsubcribe
9-
optional string topicCID = 2;
9+
optional string topicID = 2;
1010
}
1111
1212
message Message {

src/peer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Peer extends EventEmitter {
105105
topics.forEach((topic) => {
106106
subs.push({
107107
subscribe: subscribe,
108-
topicCID: topic
108+
topicID: topic
109109
})
110110
})
111111

@@ -153,9 +153,9 @@ class Peer extends EventEmitter {
153153
updateSubscriptions (changes) {
154154
changes.forEach((subopt) => {
155155
if (subopt.subscribe) {
156-
this.topics.add(subopt.topicCID)
156+
this.topics.add(subopt.topicID)
157157
} else {
158-
this.topics.delete(subopt.topicCID)
158+
this.topics.delete(subopt.topicID)
159159
}
160160
})
161161
}

0 commit comments

Comments
 (0)