File tree 4 files changed +12
-17
lines changed
4 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 1
1
sudo : false
2
2
language : node_js
3
- node_js :
4
- - 4
5
- - 5
6
- - stable
7
-
8
- # Make sure we have new NPM.
9
- before_install :
10
- - npm install -g npm
3
+ matrix :
4
+ include :
5
+ - node_js : 6
6
+ env : CXX=g++-4.8
7
+ - node_js : 8
8
+ env : CXX=g++-4.8
11
9
12
10
script :
13
11
- npm run lint
14
- - npm test
12
+ - npm run test
15
13
- npm run coverage
16
14
17
15
@@ -22,9 +20,6 @@ before_script:
22
20
after_success :
23
21
- npm run coverage-publish
24
22
25
- env :
26
- - CXX=g++-4.8
27
-
28
23
addons :
29
24
firefox : ' latest'
30
25
apt :
Original file line number Diff line number Diff line change @@ -157,10 +157,10 @@ class FloodSub extends EventEmitter {
157
157
this . cache . put ( seqno )
158
158
159
159
// 2. emit to self
160
- this . _emitMessages ( msg . topicCIDs , [ msg ] )
160
+ this . _emitMessages ( msg . topicIDs , [ msg ] )
161
161
162
162
// 3. propagate msg to others
163
- this . _forwardMessages ( msg . topicCIDs , [ msg ] )
163
+ this . _forwardMessages ( msg . topicIDs , [ msg ] )
164
164
} )
165
165
}
166
166
@@ -277,7 +277,7 @@ class FloodSub extends EventEmitter {
277
277
from : from ,
278
278
data : msg ,
279
279
seqno : new Buffer ( seqno ) ,
280
- topicCIDs : topics
280
+ topicIDs : topics
281
281
}
282
282
}
283
283
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ message RPC {
13
13
optional string from = 1;
14
14
optional bytes data = 2;
15
15
optional bytes seqno = 3;
16
- repeated string topicCIDs = 4; // CID of topic descriptor object
16
+ repeated string topicIDs = 4; // CID of topic descriptor object
17
17
}
18
18
}`
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ describe('basics between 2 nodes', () => {
131
131
expect ( msg . data . toString ( ) ) . to . equal ( 'banana' )
132
132
expect ( msg . from ) . to . be . eql ( fsB . libp2p . peerInfo . id . toB58String ( ) )
133
133
expect ( Buffer . isBuffer ( msg . seqno ) ) . to . be . true ( )
134
- expect ( msg . topicCIDs ) . to . be . eql ( [ 'Z' ] )
134
+ expect ( msg . topicIDs ) . to . be . eql ( [ 'Z' ] )
135
135
136
136
if ( ++ counter === 10 ) {
137
137
fsA . removeListener ( 'Z' , receivedMsg )
You can’t perform that action at this time.
0 commit comments