From 20b71c5d2fd69ad9312619ae3b2ed11c030ad4ac Mon Sep 17 00:00:00 2001 From: Ladd Date: Tue, 31 Dec 2024 12:49:08 -0600 Subject: [PATCH] log when libp2p is stopped --- src/pub-sub.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pub-sub.ts b/src/pub-sub.ts index c09c76c..5e98e95 100644 --- a/src/pub-sub.ts +++ b/src/pub-sub.ts @@ -95,7 +95,6 @@ export class PubSub { this.libp2p.addEventListener("peer:connect", (event) => { debug(`[${this.rhizomeNode.config.peerId}]`, `connected to peer: ${JSON.stringify(event.detail, null, 2)}`); - // TODO: Subscribe }); } @@ -174,6 +173,9 @@ export class PubSub { await pubsub.stop(); await this.libp2p.stop(); + + debug(`[${this.rhizomeNode.config.peerId}]`, 'stopped libp2p'); + } } }