Skip to content

Commit

Permalink
fix(EthIndexerClient): hardcode limit due hanging request
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Aug 26, 2024
1 parent be05a90 commit 80ba3d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib/nodes/eth-indexer/EthIndexerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ export class EthIndexerClient extends Client<EthIndexer> {

const requestParams: GetTransactionsRequest = {
and: `(${filters.join(',')})`,
order: 'time.desc',
limit: limit ? limit : undefined
order: 'time.desc'
// limit: limit ? limit : undefined
}

if (limit) requestParams.limit = limit

const transactions = await this.request('GET /ethtxs', {
...requestParams
})

return transactions.map((transaction) => normalizeTransaction(transaction, address, decimals))
return transactions
.map((transaction) => normalizeTransaction(transaction, address, decimals))
.slice(0, limit)
}
}

1 comment on commit 80ba3d8

@bludnic
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.