Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 05b0c5e

Browse files
committed
fix: fix ping!!
1 parent 82b0e90 commit 05b0c5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/components/ping-pull-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function pingPullStream (self) {
2727
if (err) {
2828
log.error(err)
2929
source.push(getPacket({ success: false, text: err.toString() }))
30-
source.end(err)
30+
source.end()
3131
}
3232
})
3333

src/http/api/resources/ping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ exports.get = {
4343
const responseStream = toStream.source(source)
4444
const stream2 = new PassThrough()
4545
pump(responseStream, stream2)
46-
return reply(stream2).type('application/json').header('X-Chunked-Output', '1')
46+
reply(stream2).type('application/json').header('X-Chunked-Output', '1')
4747
}
4848
}

0 commit comments

Comments
 (0)