Skip to content

Commit

Permalink
fix: catch p-queue error on abort
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Mar 29, 2023
1 parent ac9b413 commit e4b2ce8
Show file tree
Hide file tree
Showing 2 changed files with 721 additions and 1,071 deletions.
2 changes: 1 addition & 1 deletion packages/upload-client/src/sharding.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class ShardStoringStream extends TransformStream {
}
},
{ signal: abortController.signal }
)
).catch(err => console.error(err))

// retain backpressure by not returning until no items queued to be run
await queue.onSizeLessThan(1)
Expand Down
Loading

0 comments on commit e4b2ce8

Please sign in to comment.