Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ module.exports = function (opts) {
db.emit('flush')
}

function connect (opts) {
return down.createRpcStream(opts, null)
function connect (opts, proxy) {
return down.createRpcStream(opts, proxy)
}

function isFlushed () {
Expand Down
4 changes: 3 additions & 1 deletion leveldown.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ Multilevel.prototype._close = function (cb) {

this._clearRequests(true)
if (this._streaming) {
this._streaming.once('close', cb)
// _streaming: could be a socket and emit 'close' with a
// hadError argument.
this._streaming.once('close', () => cb())
Comment thread
ronag marked this conversation as resolved.
this._streaming.destroy()
} else {
process.nextTick(cb)
Expand Down