aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/base-request-scheduler.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/base-request-scheduler.js')
-rw-r--r--server/lib/base-request-scheduler.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/server/lib/base-request-scheduler.js b/server/lib/base-request-scheduler.js
index d15680c25..309c1a261 100644
--- a/server/lib/base-request-scheduler.js
+++ b/server/lib/base-request-scheduler.js
@@ -95,14 +95,6 @@ module.exports = class BaseRequestScheduler {
95 const requestToMake = requestsToMakeGrouped[hashKey] 95 const requestToMake = requestsToMakeGrouped[hashKey]
96 const toPod = requestToMake.toPod 96 const toPod = requestToMake.toPod
97 97
98 // Maybe the pod is not our friend anymore so simply remove it
99 if (!toPod) {
100 const requestIdsToDelete = requestToMake.ids
101
102 logger.info('Removing %d "%s" of unexisting pod %s.', requestIdsToDelete.length, this.description, requestToMake.toPod.id)
103 return this.getRequestToPodModel().removePodOf(requestIdsToDelete, requestToMake.toPod.id, callbackEach)
104 }
105
106 this.makeRequest(toPod, requestToMake.endpoint, requestToMake.datas, (success) => { 98 this.makeRequest(toPod, requestToMake.endpoint, requestToMake.datas, (success) => {
107 if (success === false) { 99 if (success === false) {
108 badPods.push(requestToMake.toPod.id) 100 badPods.push(requestToMake.toPod.id)