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 ) {
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)