chore: lint issues fixed

This commit is contained in:
Vasco Santos 2020-10-07 17:58:11 +02:00
parent 2746b4b025
commit 722cacd6d2
3 changed files with 7 additions and 3 deletions

View File

@ -37,6 +37,7 @@ class Relay {
/**
* Start Relay service.
*
* @returns {void}
*/
start () {
@ -52,6 +53,7 @@ class Relay {
/**
* Stop Relay service.
*
* @returns {void}
*/
stop () {
@ -60,6 +62,7 @@ class Relay {
/**
* Advertise hop relay service in the network.
*
* @returns {Promise<void>}
*/
async _advertiseService () {

View File

@ -22,7 +22,7 @@ class Circuit {
/**
* Creates an instance of the Circuit Transport.
*
* @constructor
* @class
* @param {object} options
* @param {Libp2p} options.libp2p
* @param {Upgrader} options.upgrader
@ -159,7 +159,7 @@ class Circuit {
*
* @param {any} options
* @param {Function} handler
* @return {listener}
* @returns {listener}
*/
createListener (options, handler) {
if (typeof options === 'function') {

View File

@ -5,8 +5,9 @@ const multihashing = require('multihashing-async')
/**
* Convert a namespace string into a cid.
*
* @param {string} namespace
* @return {Promise<CID>}
* @returns {Promise<CID>}
*/
module.exports.namespaceToCid = async (namespace) => {
const bytes = new TextEncoder('utf8').encode(namespace)