From e5b0c92dac2aaf78971232ea5c9cb819ecd6581f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 17 Dec 2022 10:38:14 -0500 Subject: [PATCH] *Subtract us from the peer count in debug --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ff4f60e..c6df7d9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -492,7 +492,9 @@ export default class DHTCache extends EventEmitter { this.emit("online", online); this.log.debug( - `Online list updated: ${online.size} network peers online, ${offline.size} network peers offline and removed from DAG` + `Online list updated: ${online.size - 1} network peers online, ${ + offline.size + } network peers offline and removed from DAG` ); }