Skip to content

Commit

Permalink
fix: reduce scoreApi chunk size to 500
Browse files Browse the repository at this point in the history
gnosis.eth fails to load with 1000
  • Loading branch information
Sekhmet committed Aug 30, 2024
1 parent 683d337 commit b1eed96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function getScores(
delegatesAddresses: string[]
): Promise<Record<string, number>> {
const chunks = delegatesAddresses.reduce((acc, address, i) => {
const chunkIndex = Math.floor(i / 1000);
const chunkIndex = Math.floor(i / 500);
if (!acc[chunkIndex]) acc[chunkIndex] = [];
acc[chunkIndex].push(address);
return acc;
Expand Down

0 comments on commit b1eed96

Please sign in to comment.