mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 18:42:15 +00:00
chore: lint issues fixed
This commit is contained in:
parent
2746b4b025
commit
722cacd6d2
@ -37,6 +37,7 @@ class Relay {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Start Relay service.
|
* Start Relay service.
|
||||||
|
*
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
start () {
|
start () {
|
||||||
@ -52,6 +53,7 @@ class Relay {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Stop Relay service.
|
* Stop Relay service.
|
||||||
|
*
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
stop () {
|
stop () {
|
||||||
@ -60,6 +62,7 @@ class Relay {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Advertise hop relay service in the network.
|
* Advertise hop relay service in the network.
|
||||||
|
*
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
async _advertiseService () {
|
async _advertiseService () {
|
||||||
|
@ -22,7 +22,7 @@ class Circuit {
|
|||||||
/**
|
/**
|
||||||
* Creates an instance of the Circuit Transport.
|
* Creates an instance of the Circuit Transport.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @class
|
||||||
* @param {object} options
|
* @param {object} options
|
||||||
* @param {Libp2p} options.libp2p
|
* @param {Libp2p} options.libp2p
|
||||||
* @param {Upgrader} options.upgrader
|
* @param {Upgrader} options.upgrader
|
||||||
@ -159,7 +159,7 @@ class Circuit {
|
|||||||
*
|
*
|
||||||
* @param {any} options
|
* @param {any} options
|
||||||
* @param {Function} handler
|
* @param {Function} handler
|
||||||
* @return {listener}
|
* @returns {listener}
|
||||||
*/
|
*/
|
||||||
createListener (options, handler) {
|
createListener (options, handler) {
|
||||||
if (typeof options === 'function') {
|
if (typeof options === 'function') {
|
||||||
|
@ -5,8 +5,9 @@ const multihashing = require('multihashing-async')
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a namespace string into a cid.
|
* Convert a namespace string into a cid.
|
||||||
|
*
|
||||||
* @param {string} namespace
|
* @param {string} namespace
|
||||||
* @return {Promise<CID>}
|
* @returns {Promise<CID>}
|
||||||
*/
|
*/
|
||||||
module.exports.namespaceToCid = async (namespace) => {
|
module.exports.namespaceToCid = async (namespace) => {
|
||||||
const bytes = new TextEncoder('utf8').encode(namespace)
|
const bytes = new TextEncoder('utf8').encode(namespace)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user