fix: remove Mojang service status tracker (fixes #274)

See https://github.com/Cryptkeeper/Minetrack/issues/274
This commit is contained in:
Nick Krecklow
2021-10-12 18:55:48 -05:00
parent 154de228aa
commit 62da42e9cb
12 changed files with 7 additions and 209 deletions

View File

@ -1,5 +1,4 @@
const Database = require('./database')
const MojangUpdater = require('./mojang')
const PingController = require('./ping')
const Server = require('./server')
const { TimeTracker } = require('./time')
@ -12,7 +11,6 @@ class App {
serverRegistrations = []
constructor () {
this.mojangUpdater = new MojangUpdater(this)
this.pingController = new PingController(this)
this.server = new Server(this)
this.timeTracker = new TimeTracker(this)
@ -33,7 +31,6 @@ class App {
this.server.listen(config.site.ip, config.site.port)
// Allow individual modules to manage their own task scheduling
this.mojangUpdater.schedule()
this.pingController.schedule()
}
@ -73,7 +70,6 @@ class App {
isGraphVisible: config.logToDatabase
}
})(),
mojangServices: this.mojangUpdater.getLastUpdate(),
timestampPoints: this.timeTracker.getServerGraphPoints(),
servers: this.serverRegistrations.map(serverRegistration => serverRegistration.getPingHistory())
}