diff --git a/src/index.js b/src/index.js index 85547f47..33ace0c0 100644 --- a/src/index.js +++ b/src/index.js @@ -242,7 +242,7 @@ class Libp2p extends EventEmitter { * Stop the libp2p node by closing its listeners and open connections * * @async - * @returns {void} + * @returns {Promise} */ async stop () { log('libp2p is stopping') @@ -601,7 +601,7 @@ class Libp2p extends EventEmitter { * instance if one is not provided in options. * * @param {object} options - Libp2p configuration options - * @returns {Libp2p} + * @returns {Promise} */ Libp2p.create = async function create (options = {}) { if (options.peerId) {