Procházet zdrojové kódy

Use autodestroy on Transform stream

Simon Detheridge před 6 roky
rodič
revize
7e45a82c35
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      services/filestore/app/js/PersistorHelper.js

+ 1 - 0
services/filestore/app/js/PersistorHelper.js

@@ -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