Skip to content

Commit

Permalink
Use more then 100 proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterbrandsen authored Mar 18, 2024
1 parent 48a635d commit 9eb19e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/requests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Requests {

if (useProxy) {
proxyCycles = [];
const proxies = Array.from({ length: 100 }, (_, index) => proxy(cycle, index));
const proxies = Array.from({ length: Number(process.env.WEBSHARE_PROXYAMOUNT) }, (_, index) => proxy(cycle, index));
await Promise.all(proxies);
cycle = proxyCycles;
}
Expand Down

0 comments on commit 9eb19e1

Please sign in to comment.