Skip to content

Commit

Permalink
FIX: Throttle API requests for loading manga list (#5997)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccx2 authored Jul 11, 2023
1 parent a3b10e8 commit e58a1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/mjs/connectors/MangaDex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class MangaDex extends Connector {

while(lastCreatedAt) {
await throttle;
throttle = new Promise(resolve => setTimeout(resolve, 250));
throttle = new Promise(resolve => setTimeout(resolve, this.config.throttleRequests.value));

const uri = new URL('/manga', this.api);
uri.searchParams.set('limit', `${limit}`);
Expand Down

0 comments on commit e58a1e1

Please sign in to comment.