File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ const DecisionEngine = require('./decision-engine')
1313const Notifications = require ( './notifications' )
1414const logger = require ( './utils' ) . logger
1515
16+ /**
17+ * JavaScript implementation of the Bitswap 'data exchange' protocol
18+ * used by IPFS.
19+ *
20+ * @param {Libp2p } libp2p
21+ * @param {Blockstore } blockstore
22+ */
1623class Bitswap {
17- /**
18- * Create a new bitswap instance.
19- *
20- * @param {Libp2p } libp2p
21- * @param {Blockstore } blockstore
22- * @returns {Bitswap }
23- */
2424 constructor ( libp2p , blockstore ) {
2525 this . _libp2p = libp2p
2626 this . _log = logger ( this . peerInfo . id )
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ const blockEvent = (c) => `block:${c}`
1111/**
1212 * Internal module used to track events about incoming blocks,
1313 * wants and unwants.
14+ *
15+ * @param {PeerId } peerId
16+ * @private
1417 */
1518class Notifications extends EventEmitter {
1619 constructor ( peerId ) {
You can’t perform that action at this time.
0 commit comments