X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.js;h=dc08805b929f4c0fc8880d512c406c012463fe08;hb=f0f5567b6918fc60c8cab15e13aec03a89a91dfb;hp=16e50443b5c9bfa3e737c9d764a6b7fb067706bc;hpb=5101105ef91bfe478f97546b78b321882da2079c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 16e50443b..dc08805b9 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js @@ -1,22 +1,22 @@ 'use strict' // API version of our pod -var API_VERSION = 'v1' +const API_VERSION = 'v1' // Score a pod has when we create it as a friend -var FRIEND_BASE_SCORE = 100 +let FRIEND_BASE_SCORE = 100 // Time to wait between requests to the friends -var INTERVAL = 60000 +let INTERVAL = 60000 // Number of points we add/remove from a friend after a successful/bad request -var PODS_SCORE = { +const PODS_SCORE = { MALUS: -10, BONUS: 10 } // Number of retries we make for the make retry requests (to friends...) -var REQUEST_RETRIES = 10 +let REQUEST_RETRIES = 10 // Special constants for a test instance if (isTestInstance() === true) {