From 5683534893025b962cfb14fe5c1319b0b278e77d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 13 Oct 2016 21:48:55 +0200 Subject: [PATCH] Remove references to Electron --- config/default.yaml | 3 --- config/test.yaml | 3 --- server/initializers/checker.js | 4 ++-- server/initializers/constants.js | 8 -------- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/config/default.yaml b/config/default.yaml index b44be31b0..6a1e22204 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -18,6 +18,3 @@ storage: logs: 'logs/' thumbnails: 'thumbnails/' torrents: 'torrents/' - -electron: - debug: false diff --git a/config/test.yaml b/config/test.yaml index 7f893bc4f..8a667a001 100644 --- a/config/test.yaml +++ b/config/test.yaml @@ -7,6 +7,3 @@ webserver: database: host: 'localhost' port: 27017 - -electron: - debug: false diff --git a/server/initializers/checker.js b/server/initializers/checker.js index 91fbcfaf9..85e9bc98b 100644 --- a/server/initializers/checker.js +++ b/server/initializers/checker.js @@ -17,8 +17,8 @@ function checkConfig () { const required = [ 'listen.port', 'webserver.https', 'webserver.host', 'webserver.port', 'database.host', 'database.port', 'database.suffix', - 'storage.certs', 'storage.uploads', 'storage.logs', 'storage.thumbnails', - 'electron.debug' ] + 'storage.certs', 'storage.uploads', 'storage.logs', 'storage.thumbnails' + ] const miss = [] for (const key of required) { diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 75065fe72..09c4f755e 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js @@ -35,9 +35,6 @@ const CONFIG = { HOST: config.get('database.host'), PORT: config.get('database.port') }, - ELECTRON: { - DEBUG: config.get('electron.debug') - }, STORAGE: { CERT_DIR: path.join(__dirname, '..', '..', config.get('storage.certs')), LOG_DIR: path.join(__dirname, '..', '..', config.get('storage.logs')), @@ -138,10 +135,6 @@ const USER_ROLES = { USER: 'user' } -// Seeds in parallel we send to electron when "seed all" -// Once a video is in seeding state we seed another video etc -const SEEDS_IN_PARALLEL = 3 - // --------------------------------------------------------------------------- // Special constants for a test instance @@ -169,7 +162,6 @@ module.exports = { REQUESTS_LIMIT, RETRY_REQUESTS, SEARCHABLE_COLUMNS, - SEEDS_IN_PARALLEL, SORTABLE_COLUMNS, STATIC_PATHS, THUMBNAILS_SIZE, -- 2.25.1