Skip to content

Commit

Permalink
bacalhau: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Aug 21, 2023
1 parent 6f81584 commit 1049d97
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/bacalhau.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ export async function start ({
}
)

const readyPromise = new Promise((resolve, reject) => {
childProcess.stdout.setEncoding('utf-8')
childProcess.stdout.on('data', data => {
if (data.includes('/compute/debug') && data.includes(200)) {
// Ignore noisy lines
return
}
handleActivityLogs({ onActivity, text: data })
})
childProcess.stderr.pipe(process.stderr, { end: false })
childProcess.stdout.setEncoding('utf-8')
childProcess.stdout.on('data', data => {
if (data.includes('/compute/debug') && data.includes(200)) {
// Ignore noisy lines
return
}
handleActivityLogs({ onActivity, text: data })
})
childProcess.stderr.pipe(process.stderr, { end: false })

const readyPromise = new Promise((resolve, reject) => {
let output = ''

const readyHandler = data => {
Expand Down

0 comments on commit 1049d97

Please sign in to comment.