From 4e6f1b3ad39e50841d09d14121d61a1f8640a8d8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Sep 2023 20:20:30 -0400 Subject: [PATCH] refactor: use node.services.p2p --- src/service/p2p.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/p2p.ts b/src/service/p2p.ts index 73fe25c..b768856 100644 --- a/src/service/p2p.ts +++ b/src/service/p2p.ts @@ -46,7 +46,7 @@ export class P2PService extends EventEmitter { this.nodeKeyPair = node.config.keyPair; this.logger = node.logger; - node.config.services.p2p = this; + node.services.p2p = this; } private _hashQueryRoutingTable: Map> = new Map();