@@ -101,19 +101,19 @@ class PubsubBaseProtocol extends EventEmitter {
101
101
this . libp2p . dialProtocol ( peerInfo , this . multicodec , ( err , conn ) => {
102
102
this . log ( 'dial to %s complete' , idB58Str )
103
103
104
- // If the dial is not in the set, it means that floodsub has been
104
+ // If the dial is not in the set, it means that pubsub has been
105
105
// stopped
106
- const floodsubStopped = ! this . _dials . has ( idB58Str )
106
+ const pubsubStopped = ! this . _dials . has ( idB58Str )
107
107
this . _dials . delete ( idB58Str )
108
108
109
109
if ( err ) {
110
110
this . log . err ( err )
111
111
return callback ( )
112
112
}
113
113
114
- // Floodsub has been stopped, so we should just bail out
115
- if ( floodsubStopped ) {
116
- this . log ( 'floodsub was stopped, not processing dial to %s' , idB58Str )
114
+ // pubsub has been stopped, so we should just bail out
115
+ if ( pubsubStopped ) {
116
+ this . log ( 'pubsub was stopped, not processing dial to %s' , idB58Str )
117
117
return callback ( )
118
118
}
119
119
@@ -160,7 +160,7 @@ class PubsubBaseProtocol extends EventEmitter {
160
160
}
161
161
162
162
/**
163
- * Mounts the floodsub protocol onto the libp2p node and sends our
163
+ * Mounts the pubsub protocol onto the libp2p node and sends our
164
164
* subscriptions to every peer conneceted
165
165
*
166
166
* @param {Function } callback
@@ -191,7 +191,7 @@ class PubsubBaseProtocol extends EventEmitter {
191
191
}
192
192
193
193
/**
194
- * Unmounts the floodsub protocol and shuts down every connection
194
+ * Unmounts the pubsub protocol and shuts down every connection
195
195
*
196
196
* @param {Function } callback
197
197
* @returns {undefined }
0 commit comments