mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-03 14:32:18 +00:00
parent
d0a9fada32
commit
e9e4b731a5
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user