Skip to content

Commit

Permalink
use read replica rather than main instance (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill authored Mar 18, 2024
1 parent 00cd3d5 commit 1482a88
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 1482a88

Please sign in to comment.