Browse Source

Remove test IPC request from seeker

dev
David Ludwig 4 years ago
parent
commit
038aade267
2 changed files with 0 additions and 11 deletions
  1. +0
    -8
      services/seeker/src/services/TorrentManager/TorrentClientIpc.ts
  2. +0
    -3
      services/seeker/src/services/TorrentManager/TorrentManager.ts

+ 0
- 8
services/seeker/src/services/TorrentManager/TorrentClientIpc.ts View File

@ -91,14 +91,6 @@ export default abstract class TorrentClientIpc extends IpcClientService<Applicat
// Methods -------------------------------------------------------------------------------------
protected async test(value: string) {
let response = await this.request("test", value);
if (response.error) {
throw new Error("Failed to complete test");
}
return <string>response.data;
}
/**
* Add a torrent to the client
* @param torrent Magnet URI or file buffer


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

@ -1,6 +1,5 @@
import diskusage from "diskusage";
import { readdir } from "fs/promises";
import Application from "../../Application"
import { MovieTicket, MovieTorrent } from "@autoplex/database";
import Supervisor from "../Supervisor";
import TorrentClientIpc, { TorrentClientConnectionError } from "./TorrentClientIpc"
@ -49,8 +48,6 @@ export default class TorrentManager extends TorrentClientIpc
this.log("Booting the torrent manager");
await super.boot();
await this.loadDisks();
console.log("Sending test request...")
console.log("Response is:", await this.test("test value"));
}
// Interface methods ---------------------------------------------------------------------------


Loading…
Cancel
Save