1
0
mirror of https://github.com/nttgin/BGPalerter.git synced 2024-05-19 06:50:08 +00:00

refactoring, introduced dependency injector

This commit is contained in:
Massimo Candela
2019-07-03 01:41:05 +02:00
parent 656ad82003
commit e5ca0e4131
13 changed files with 3277 additions and 3223 deletions

View File

@@ -1,12 +1,8 @@
import config from "./config";
import { config, logger } from "./env";
import cluster from "cluster";
import WebSocket from "ws";
import sleep from "sleep";
import Consumer from "./consumer";
import InputManager from "./inputManager";
import logger from './logger';
const inputManager = new InputManager(config);
if (cluster.isMaster) {
@@ -65,5 +61,5 @@ if (cluster.isMaster) {
}
} else {
new Consumer(inputManager)
new Consumer();
}