Skip to content

Commit

Permalink
Temporarily Disable Concurrency (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan700 authored Nov 27, 2023
1 parent 70bda0d commit a20f8d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ async function main(sftp: Client){
passphrase: passphrase,
})

// allow only 4 sftp operations to occur at once
const limit = pLimit(4)
// allow only 1 sftp operation to occur at once
const limit = pLimit(1)
const promises: Promise<string | void>[] = []

if(shouldDelete && !isDryRun){
Expand Down

0 comments on commit a20f8d1

Please sign in to comment.