diff --git a/src/modules/plugin.ts b/src/modules/plugin.ts index fbc6391..29779a5 100644 --- a/src/modules/plugin.ts +++ b/src/modules/plugin.ts @@ -32,12 +32,10 @@ class PluginAPI extends EventEmitter2 { constructor({ config, - logger, server, swarm, }: { config: Config; - logger: Logger; server: RPCServer; swarm: any; }) { @@ -47,7 +45,6 @@ class PluginAPI extends EventEmitter2 { maxListeners: 0, }); this._config = config; - this._logger = logger; this._server = server; this._swarm = swarm; } @@ -74,8 +71,6 @@ class PluginAPI extends EventEmitter2 { throw new Error("not implemented and should not be called"); } - private _logger: Logger; - get logger(): Logger { throw new Error("not implemented and should not be called"); } @@ -115,7 +110,6 @@ export function getPluginAPI(): PluginAPI { if (!pluginAPI) { pluginAPI = new PluginAPI({ config, - logger: log, server: getRpcServer(), swarm: getSwarm(), });