docs: fix JSDOc for stop and create (#812) (#813)

This commit is contained in:
a1300 2020-11-27 10:50:35 +01:00 committed by GitHub
parent d0a9fada32
commit e9e4b731a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,7 @@ class Libp2p extends EventEmitter {
* Stop the libp2p node by closing its listeners and open connections * Stop the libp2p node by closing its listeners and open connections
* *
* @async * @async
* @returns {void} * @returns {Promise<void>}
*/ */
async stop () { async stop () {
log('libp2p is stopping') log('libp2p is stopping')
@ -601,7 +601,7 @@ class Libp2p extends EventEmitter {
* instance if one is not provided in options. * instance if one is not provided in options.
* *
* @param {object} options - Libp2p configuration options * @param {object} options - Libp2p configuration options
* @returns {Libp2p} * @returns {Promise<Libp2p>}
*/ */
Libp2p.create = async function create (options = {}) { Libp2p.create = async function create (options = {}) {
if (options.peerId) { if (options.peerId) {