diff --git a/packages/core/src/topology/Topology.ts b/packages/core/src/topology/Topology.ts index 116981f..4871fd4 100644 --- a/packages/core/src/topology/Topology.ts +++ b/packages/core/src/topology/Topology.ts @@ -60,7 +60,6 @@ export interface TopologyOptions { */ // TODO: Gossip about updated peer latencies export class Topology { - private readonly parent: Network; private readonly debug: debug.Debugger; private readonly endpoint: boolean; @@ -91,8 +90,7 @@ export class Topology { * @param options - * options to apply */ - public constructor(parent: Network, options: TopologyOptions) { - this.parent = parent; + public constructor(parent: Pick, options: TopologyOptions) { this.endpoint = options.endpoint || false; this.broadcastTimeout = null; diff --git a/packages/core/test/topology/TopologyTester.ts b/packages/core/test/topology/TopologyTester.ts index 18b8125..ba37ef4 100644 --- a/packages/core/test/topology/TopologyTester.ts +++ b/packages/core/test/topology/TopologyTester.ts @@ -57,9 +57,8 @@ export class TopologyTester { id: generatedId, topology: new Topology({ - networkId: id, networkIdBinary: generatedId, - debugNamespace: 'test:' + id + networkName: id }, {}) };