1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Use const/let now we use node 4.2

This commit is contained in:
Chocobozzz 2016-03-16 22:29:27 +01:00
parent 5101105ef9
commit f0f5567b69
36 changed files with 424 additions and 432 deletions

View file

@ -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) {