Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
chore: rm tip block cache to improve ci speed
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu committed Nov 21, 2022
1 parent f22daf4 commit 9d93300
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/api-server/src/db/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,15 @@ export class Query {
const blockData = await this.knex<DBBlock>("blocks")
.select("number")
.orderBy("number", "desc")
.first()
.cache();
.first();

return toBigIntOpt(blockData?.number);
}

async getTipBlock(): Promise<Block | undefined> {
const block = await this.knex<DBBlock>("blocks")
.orderBy("number", "desc")
.first()
.cache();
.first();

if (!block) {
return undefined;
Expand Down

0 comments on commit 9d93300

Please sign in to comment.