Use autodestroy on Transform stream
This commit is contained in:
@@ -15,6 +15,7 @@ const pipeline = promisify(Stream.pipeline)
|
||||
// the number of bytes transferred
|
||||
class ObserverStream extends Stream.Transform {
|
||||
constructor(options) {
|
||||
options.autoDestroy = true
|
||||
super(options)
|
||||
|
||||
this.bytes = 0
|
||||
|
||||
Reference in New Issue
Block a user