Skip to content

Commit

Permalink
use read replica rather than main instance (#1190) (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill authored Mar 18, 2024
1 parent 9a77550 commit 2c6ec37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export class AggregateTradingReward {
const blocks: BlockFromDatabase[] = await BlockTable.findAll({
createdOnOrAfter: time,
limit: 1,
}, []);
}, [], { readReplica: true });

if (blocks.length === 0) {
logger.error({
Expand Down

0 comments on commit 2c6ec37

Please sign in to comment.