From f282639b07deee1e35403bd86c46ea521fb4845e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 26 Feb 2017 19:27:08 +0100 Subject: Server: request scheduler refractoring --- server/lib/base-request-scheduler.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'server/lib/base-request-scheduler.js') 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 { const requestToMake = requestsToMakeGrouped[hashKey] const toPod = requestToMake.toPod - // Maybe the pod is not our friend anymore so simply remove it - if (!toPod) { - const requestIdsToDelete = requestToMake.ids - - logger.info('Removing %d "%s" of unexisting pod %s.', requestIdsToDelete.length, this.description, requestToMake.toPod.id) - return this.getRequestToPodModel().removePodOf(requestIdsToDelete, requestToMake.toPod.id, callbackEach) - } - this.makeRequest(toPod, requestToMake.endpoint, requestToMake.datas, (success) => { if (success === false) { badPods.push(requestToMake.toPod.id) -- cgit v1.2.3