Skip to content

Commit

Permalink
feat: enable autoStart of p-queue to minimize running time
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Nov 23, 2023
1 parent 5e4737b commit e71b35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function PostPurgeRequest(ProgramOptions: Types.ProgramOptionsType, Branch
}

export class PurgeRequestManager {
private readonly SharedPQueue = new PQueue({autoStart: false, concurrency: Os.cpus().length})
private readonly SharedPQueue = new PQueue({autoStart: true, concurrency: Os.cpus().length})
private readonly RemainingFilenames: Types.RemainingFilenamesArrayType[] = []

constructor(private readonly ProgramOptions: Types.ProgramOptionsType) {}
Expand Down

0 comments on commit e71b35b

Please sign in to comment.