mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Put poolSize into variable
This commit is contained in:
parent
a27f17cae3
commit
c5b7c81239
1 changed files with 3 additions and 1 deletions
|
|
@ -202,8 +202,10 @@ class BuildLists {
|
|||
|
||||
saveApiEndpoints = async function ( listOptions ) {
|
||||
|
||||
const poolSize = 1000
|
||||
|
||||
await PromisePool
|
||||
.withConcurrency(1000)
|
||||
.withConcurrency( poolSize )
|
||||
.for( Array.from( this.lists[listOptions.name] ) )
|
||||
.process(async ( listEntry, index, pool ) => {
|
||||
// console.log('listEntry', listEntry)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue