Browse Source

Add override keyword to seeker

dev
David Ludwig 4 years ago
parent
commit
e8c2f5072f
4 changed files with 8 additions and 8 deletions
  1. +1
    -1
      services/seeker/src/services/IpcInterface.ts
  2. +2
    -2
      services/seeker/src/services/Supervisor.ts
  3. +2
    -2
      services/seeker/src/services/TorrentIpc.ts
  4. +3
    -3
      services/seeker/src/services/TorrentManager.ts

+ 1
- 1
services/seeker/src/services/IpcInterface.ts View File

@ -18,7 +18,7 @@ export default class IpcInterface extends IpcServerService
/** /**
* Install the the event handlers * Install the the event handlers
*/ */
protected installMessageHandlers() {
protected override installMessageHandlers() {
this.addMessageHandler("movie_ticket_added", this.onMovieTicketAdded); this.addMessageHandler("movie_ticket_added", this.onMovieTicketAdded);
} }


+ 2
- 2
services/seeker/src/services/Supervisor.ts View File

@ -30,7 +30,7 @@ export default class Supervisor extends InternalService
/** /**
* Link to other internal services * Link to other internal services
*/ */
public link(app: Microservice) {
public override link(app: Microservice) {
this.torrentSearch = app.service<TorrentSearchIpc>("Torrent Search"); this.torrentSearch = app.service<TorrentSearchIpc>("Torrent Search");
this.torrentManager = app.service<TorrentManager>("Torrent Manager"); this.torrentManager = app.service<TorrentManager>("Torrent Manager");
this.postProcessor = app.service<PostProcessor>("Post Processor"); this.postProcessor = app.service<PostProcessor>("Post Processor");
@ -39,7 +39,7 @@ export default class Supervisor extends InternalService
/** /**
* All services are booted and ready * All services are booted and ready
*/ */
public start() {
public override start() {
this.searchMovies(); this.searchMovies();
} }


+ 2
- 2
services/seeker/src/services/TorrentIpc.ts View File

@ -28,7 +28,7 @@ class TorrentIpc extends IpcClient
/** /**
* Install the message event handlers * Install the message event handlers
*/ */
protected installMessageHandlers() {
protected override installMessageHandlers() {
this.addListener("torrent_finished", this.onTorrentFinished); this.addListener("torrent_finished", this.onTorrentFinished);
} }
@ -40,7 +40,7 @@ class TorrentIpc extends IpcClient
/** /**
* Emit an event when connected * Emit an event when connected
*/ */
protected onConnect() {
protected override onConnect() {
super.onConnect(); super.onConnect();
this.emit("connected"); this.emit("connected");
} }


+ 3
- 3
services/seeker/src/services/TorrentManager.ts View File

@ -49,7 +49,7 @@ export default class TorrentManager extends InternalService
/** /**
* Boot the Torrent Manager service * Boot the Torrent Manager service
*/ */
public async boot() {
public override async boot() {
this.log("Booting the torrent manager"); this.log("Booting the torrent manager");
await super.boot(); await super.boot();
await this.loadDisks(); await this.loadDisks();
@ -58,14 +58,14 @@ export default class TorrentManager extends InternalService
/** /**
* Link to other services * Link to other services
*/ */
public link(app: Microservice) {
public override link(app: Microservice) {
this.torrentIpc = app.service<TorrentIpc>("Torrent"); this.torrentIpc = app.service<TorrentIpc>("Torrent");
} }
/** /**
* Start the service * Start the service
*/ */
public start() {
public override start() {
this.torrentIpc.on("connected", this.onConnect.bind(this)); this.torrentIpc.on("connected", this.onConnect.bind(this));
} }


Loading…
Cancel
Save