@@ -101,19 +101,19 @@ class PubsubBaseProtocol extends EventEmitter {
101101 this . libp2p . dialProtocol ( peerInfo , this . multicodec , ( err , conn ) => {
102102 this . log ( 'dial to %s complete' , idB58Str )
103103
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
105105 // stopped
106- const floodsubStopped = ! this . _dials . has ( idB58Str )
106+ const pubsubStopped = ! this . _dials . has ( idB58Str )
107107 this . _dials . delete ( idB58Str )
108108
109109 if ( err ) {
110110 this . log . err ( err )
111111 return callback ( )
112112 }
113113
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 )
117117 return callback ( )
118118 }
119119
@@ -160,7 +160,7 @@ class PubsubBaseProtocol extends EventEmitter {
160160 }
161161
162162 /**
163- * Mounts the floodsub protocol onto the libp2p node and sends our
163+ * Mounts the pubsub protocol onto the libp2p node and sends our
164164 * subscriptions to every peer conneceted
165165 *
166166 * @param {Function } callback
@@ -191,7 +191,7 @@ class PubsubBaseProtocol extends EventEmitter {
191191 }
192192
193193 /**
194- * Unmounts the floodsub protocol and shuts down every connection
194+ * Unmounts the pubsub protocol and shuts down every connection
195195 *
196196 * @param {Function } callback
197197 * @returns {undefined }
0 commit comments