Skip to content

Commit

Permalink
Make ThreadStream sync: false (the default)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Aug 18, 2021
1 parent 1c98f75 commit 8d243f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ function setupOnExit (stream) {
}
}

function buildStream (filename, workerData, workerOpts) {
function buildStream (filename, workerData, workerOpts, streamOpts = {}) {
const stream = new ThreadStream({
filename,
workerData,
workerOpts,
sync: true // TODO should this be configurable?
workerOpts
})

stream.on('ready', function () {
Expand Down

0 comments on commit 8d243f3

Please sign in to comment.