*Remove the logger object from the PluginAPI object

This commit is contained in:
Derrick Hammer 2023-01-13 17:53:37 -05:00
parent d5138c3860
commit eb2a19121f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 6 deletions

View File

@ -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(),
});