From 61861abd100fa31a5a7937ce0a9ac6db64f531c8 Mon Sep 17 00:00:00 2001 From: Djordje Kovacevic Date: Fri, 5 Jun 2020 15:46:01 +0200 Subject: [PATCH] Resolved issue with too many infura calls --- modules/command/dh/dh-offer-finalized-command.js | 6 +++--- modules/service/dh-service.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/command/dh/dh-offer-finalized-command.js b/modules/command/dh/dh-offer-finalized-command.js index a8d745bfe4..1cd7e69c67 100644 --- a/modules/command/dh/dh-offer-finalized-command.js +++ b/modules/command/dh/dh-offer-finalized-command.js @@ -53,7 +53,7 @@ class DhOfferFinalizedCommand extends Command { await bid.save({ fields: ['status'] }); this.logger.important(`I've been chosen for offer ${offerId}.`); - await this.remoteControl.onCompletedBids(); + // await this.remoteControl.onCompletedBids(); if (this.config.disableAutoPayouts !== true) { const scheduledTime = @@ -79,7 +79,7 @@ class DhOfferFinalizedCommand extends Command { bid.status = 'NOT_CHOSEN'; await bid.save({ fields: ['status'] }); this.logger.important(`I haven't been chosen for offer ${offerId}.`); - await this.remoteControl.onCompletedBids(); + // await this.remoteControl.onCompletedBids(); return Command.empty(); } } @@ -97,7 +97,7 @@ class DhOfferFinalizedCommand extends Command { const bid = await Models.bids.findOne({ where: { offer_id: offerId } }); bid.status = 'NOT_CHOSEN'; await bid.save({ fields: ['status'] }); - await this.remoteControl.onCompletedBids(); + // await this.remoteControl.onCompletedBids(); return Command.empty(); } diff --git a/modules/service/dh-service.js b/modules/service/dh-service.js index cee5dea49e..37240f1d47 100644 --- a/modules/service/dh-service.js +++ b/modules/service/dh-service.js @@ -170,7 +170,7 @@ class DHService { transactional: false, }); - await this.remoteControl.getPendingBids(); + // await this.remoteControl.getPendingBids(); } /**