diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-16 14:25:37 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-16 14:25:37 +0200 |
commit | 0dd079da272df8d532f0086d7c91597b43e7a143 (patch) | |
tree | 93fb2a1a063f7e70ad233117efbc52812858ad05 /server/lib | |
parent | 3758da9489b636997a3a4fad7fc1a6081737bbe0 (diff) | |
download | PeerTube-0dd079da272df8d532f0086d7c91597b43e7a143.tar.gz PeerTube-0dd079da272df8d532f0086d7c91597b43e7a143.tar.zst PeerTube-0dd079da272df8d532f0086d7c91597b43e7a143.zip |
Update standard -> 10
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/base-request-scheduler.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/lib/base-request-scheduler.js b/server/lib/base-request-scheduler.js index 4709c7960..7378971c8 100644 --- a/server/lib/base-request-scheduler.js +++ b/server/lib/base-request-scheduler.js | |||
@@ -66,10 +66,10 @@ module.exports = class BaseRequestScheduler { | |||
66 | err = err ? err.message : 'Status code not 20x : ' + res.statusCode | 66 | err = err ? err.message : 'Status code not 20x : ' + res.statusCode |
67 | logger.error('Error sending secure request to %s pod.', toPod.host, { error: err }) | 67 | logger.error('Error sending secure request to %s pod.', toPod.host, { error: err }) |
68 | 68 | ||
69 | return callback(false) | 69 | return callback(err) |
70 | } | 70 | } |
71 | 71 | ||
72 | return callback(true) | 72 | return callback(null) |
73 | }) | 73 | }) |
74 | } | 74 | } |
75 | 75 | ||
@@ -99,8 +99,8 @@ module.exports = class BaseRequestScheduler { | |||
99 | const requestToMake = requestsToMakeGrouped[hashKey] | 99 | const requestToMake = requestsToMakeGrouped[hashKey] |
100 | const toPod = requestToMake.toPod | 100 | const toPod = requestToMake.toPod |
101 | 101 | ||
102 | this.makeRequest(toPod, requestToMake.endpoint, requestToMake.datas, (success) => { | 102 | this.makeRequest(toPod, requestToMake.endpoint, requestToMake.datas, (err) => { |
103 | if (success === false) { | 103 | if (err) { |
104 | badPods.push(requestToMake.toPod.id) | 104 | badPods.push(requestToMake.toPod.id) |
105 | return callbackEach() | 105 | return callbackEach() |
106 | } | 106 | } |