Browse Source

Fix assertion failure crash in example.js

Aral Balkan 2 years ago
parent
commit
bdbb76d8d2
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      example.js

+ 2
- 2
example.js View File

@@ -19,8 +19,8 @@ function bobOverwrite () {
19 19
 }
20 20
 
21 21
 function replicate (cb) {
22
-  var aliceStream = aliceDrive.replicate({ live: false })
23
-  aliceStream.pipe(bobDrive.replicate({ live: false })).pipe(aliceStream)
22
+  var aliceStream = aliceDrive.replicate(true, { live: false })
23
+  aliceStream.pipe(bobDrive.replicate(false, { live: false })).pipe(aliceStream)
24 24
   aliceStream.on('end', cb)
25 25
 }
26 26