*Remove the logger object from the PluginAPI object
This commit is contained in:
parent
d5138c3860
commit
eb2a19121f
|
@ -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(),
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue