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'); + } } }