Skip to content

Commit

Permalink
decrease batchSize for coins api
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Jul 3, 2024
1 parent a6cfbb5 commit 983d405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/triggerAdaptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const main = async (body) => {

const timestamp7daysAgo = Math.floor(Date.now() / 1000) - 7 * 24 * 60 * 60;
// price endpoint seems to break with too many tokens, splitting it to max 150 per request
const maxSize = 150;
const maxSize = 100;
const pages = Math.ceil(uniqueToken.length / maxSize);
let prices7d_ = [];
let x = '';
Expand Down

0 comments on commit 983d405

Please sign in to comment.