Skip to content

Commit

Permalink
Merge pull request #1275 from OriginTrail/hotfix/relase-4.1.3-hotfix
Browse files Browse the repository at this point in the history
Resolved issue with too many infura calls
  • Loading branch information
djordjekovac authored Jun 9, 2020
2 parents 2db14c0 + 61861ab commit 7e41e23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/command/dh/dh-offer-finalized-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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();
}
}
Expand All @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion modules/service/dh-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class DHService {
transactional: false,
});

await this.remoteControl.getPendingBids();
// await this.remoteControl.getPendingBids();
}

/**
Expand Down

0 comments on commit 7e41e23

Please sign in to comment.