From e8c2f5072f348b4cc4459b4a7a389c671e5d14fb Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Wed, 16 Jun 2021 13:18:19 -0500 Subject: [PATCH] Add override keyword to seeker --- services/seeker/src/services/IpcInterface.ts | 2 +- services/seeker/src/services/Supervisor.ts | 4 ++-- services/seeker/src/services/TorrentIpc.ts | 4 ++-- services/seeker/src/services/TorrentManager.ts | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/services/seeker/src/services/IpcInterface.ts b/services/seeker/src/services/IpcInterface.ts index 1c9b7e5..ca0610c 100644 --- a/services/seeker/src/services/IpcInterface.ts +++ b/services/seeker/src/services/IpcInterface.ts @@ -18,7 +18,7 @@ export default class IpcInterface extends IpcServerService /** * Install the the event handlers */ - protected installMessageHandlers() { + protected override installMessageHandlers() { this.addMessageHandler("movie_ticket_added", this.onMovieTicketAdded); } diff --git a/services/seeker/src/services/Supervisor.ts b/services/seeker/src/services/Supervisor.ts index c31e91b..2c373e6 100644 --- a/services/seeker/src/services/Supervisor.ts +++ b/services/seeker/src/services/Supervisor.ts @@ -30,7 +30,7 @@ export default class Supervisor extends InternalService /** * Link to other internal services */ - public link(app: Microservice) { + public override link(app: Microservice) { this.torrentSearch = app.service("Torrent Search"); this.torrentManager = app.service("Torrent Manager"); this.postProcessor = app.service("Post Processor"); @@ -39,7 +39,7 @@ export default class Supervisor extends InternalService /** * All services are booted and ready */ - public start() { + public override start() { this.searchMovies(); } diff --git a/services/seeker/src/services/TorrentIpc.ts b/services/seeker/src/services/TorrentIpc.ts index b2cb777..030f596 100644 --- a/services/seeker/src/services/TorrentIpc.ts +++ b/services/seeker/src/services/TorrentIpc.ts @@ -28,7 +28,7 @@ class TorrentIpc extends IpcClient /** * Install the message event handlers */ - protected installMessageHandlers() { + protected override installMessageHandlers() { this.addListener("torrent_finished", this.onTorrentFinished); } @@ -40,7 +40,7 @@ class TorrentIpc extends IpcClient /** * Emit an event when connected */ - protected onConnect() { + protected override onConnect() { super.onConnect(); this.emit("connected"); } diff --git a/services/seeker/src/services/TorrentManager.ts b/services/seeker/src/services/TorrentManager.ts index 26d6276..79fb561 100644 --- a/services/seeker/src/services/TorrentManager.ts +++ b/services/seeker/src/services/TorrentManager.ts @@ -49,7 +49,7 @@ export default class TorrentManager extends InternalService /** * Boot the Torrent Manager service */ - public async boot() { + public override async boot() { this.log("Booting the torrent manager"); await super.boot(); await this.loadDisks(); @@ -58,14 +58,14 @@ export default class TorrentManager extends InternalService /** * Link to other services */ - public link(app: Microservice) { + public override link(app: Microservice) { this.torrentIpc = app.service("Torrent"); } /** * Start the service */ - public start() { + public override start() { this.torrentIpc.on("connected", this.onConnect.bind(this)); }