aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-06 15:28:33 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-06 15:28:33 +0200
commit8c255eb53c8f47bd64778d6fbcb93b248ee14163 (patch)
tree88950578fb8fed21433752996f76b598b068483c /server/initializers
parent8d199cb823e1e47de87fdf421964e260b0ba6eb7 (diff)
downloadPeerTube-8c255eb53c8f47bd64778d6fbcb93b248ee14163.tar.gz
PeerTube-8c255eb53c8f47bd64778d6fbcb93b248ee14163.tar.zst
PeerTube-8c255eb53c8f47bd64778d6fbcb93b248ee14163.zip
Little refractoring of requests scheduler module
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index c6a6ac966..6fa322010 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -21,6 +21,9 @@ const PODS_SCORE = {
21// Number of retries we make for the make retry requests (to friends...) 21// Number of retries we make for the make retry requests (to friends...)
22let REQUEST_RETRIES = 10 22let REQUEST_RETRIES = 10
23 23
24// Different types or requests for the request scheduler module
25const REQUEST_SCHEDULER_TYPE = [ 'add', 'remove' ]
26
24// Sortable columns per schema 27// Sortable columns per schema
25const SEARCHABLE_COLUMNS = { 28const SEARCHABLE_COLUMNS = {
26 VIDEOS: [ 'name', 'magnetUri', 'podUrl', 'author', 'tags' ] 29 VIDEOS: [ 'name', 'magnetUri', 'podUrl', 'author', 'tags' ]
@@ -65,6 +68,7 @@ module.exports = {
65 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, 68 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
66 PODS_SCORE: PODS_SCORE, 69 PODS_SCORE: PODS_SCORE,
67 REQUEST_RETRIES: REQUEST_RETRIES, 70 REQUEST_RETRIES: REQUEST_RETRIES,
71 REQUEST_SCHEDULER_TYPE: REQUEST_SCHEDULER_TYPE,
68 SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, 72 SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS,
69 SORTABLE_COLUMNS: SORTABLE_COLUMNS, 73 SORTABLE_COLUMNS: SORTABLE_COLUMNS,
70 THUMBNAILS_SIZE: THUMBNAILS_SIZE, 74 THUMBNAILS_SIZE: THUMBNAILS_SIZE,