Put poolSize into variable

This commit is contained in:
Sam Carlton 2022-04-26 16:41:23 -05:00
parent a27f17cae3
commit c5b7c81239

View file

@ -202,8 +202,10 @@ class BuildLists {
saveApiEndpoints = async function ( listOptions ) { saveApiEndpoints = async function ( listOptions ) {
const poolSize = 1000
await PromisePool await PromisePool
.withConcurrency(1000) .withConcurrency( poolSize )
.for( Array.from( this.lists[listOptions.name] ) ) .for( Array.from( this.lists[listOptions.name] ) )
.process(async ( listEntry, index, pool ) => { .process(async ( listEntry, index, pool ) => {
// console.log('listEntry', listEntry) // console.log('listEntry', listEntry)