Skip to content

Commit

Permalink
chore: fix for read replica
Browse files Browse the repository at this point in the history
  • Loading branch information
Samika Kashyap committed May 31, 2024
1 parent 74aa9ff commit 0fd79ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/request-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ export class RequestService {
logger.err(`Error fetching request from replica db for ${cid}, error: ${e}`)
}
if (!found) {
found = await this.requestRepository.findByCid(cid)
logger.debug(`Request not found in replica db for ${cid}, fetching from main_db`)
Metrics.count(METRIC_NAMES.REPLICA_DB_REQUEST_NOT_FOUND, 1)
found = await this.requestRepository.findByCid(cid)
if (!found) {
throw new RequestDoesNotExistError(cid)
}
Expand Down

0 comments on commit 0fd79ff

Please sign in to comment.