Skip to content

Commit

Permalink
Reduce pagesize and also make it a param
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJohnnyGault committed Apr 10, 2024
1 parent 92f3b59 commit d6c437a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/gogopool.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class GoGoPool {
await this.until((_) => this.isLoaded);

const totalMinipools = (await this.contracts.MinipoolManager.contract.getMinipoolCount()).toNumber();
const pageSize = 400; // Number of minipools to fetch per page
const pageSize = params.get("pageSize") || 300; // Number of minipools to fetch per page
const maxTotalPages = Math.ceil(totalMinipools / pageSize);

const promises = [];
Expand Down

0 comments on commit d6c437a

Please sign in to comment.