Skip to content

Commit c7459e7

Browse files
author
Tuyen
committedMar 16, 2020
Add method comment
1 parent d20b42f commit c7459e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/index.js

+7
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,13 @@ class GossipSub extends BasicPubsub {
380380
})
381381
}
382382

383+
/**
384+
* Override the default implementation in BasicPubSub.
385+
* If we don't provide msgIdFn in constructor option, it's the same.
386+
* @override
387+
* @param {rpc.RPC.Message} msg the message object
388+
* @returns {string} message id as string
389+
*/
383390
getMsgId (msg) {
384391
return this._msgIdFn(msg)
385392
}

0 commit comments

Comments
 (0)
Please sign in to comment.