Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
perf: small bl (#52)
Browse files Browse the repository at this point in the history
This imports the `BufferList` class that does not extend duplex stream. This gets us one step closer to removing readable-stream from the bundle.
  • Loading branch information
Alan Shaw authored Jan 31, 2020
1 parent 6ac5e7c commit 3d461ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chunker/fixed-size.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const BufferList = require('bl')
const BufferList = require('bl/BufferList')

module.exports = async function * fixedSizeChunker (source, options) {
let bl = new BufferList()
Expand Down
2 changes: 1 addition & 1 deletion src/chunker/rabin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const BufferList = require('bl')
const BufferList = require('bl/BufferList')
const { create } = require('rabin-wasm')
const errcode = require('err-code')

Expand Down

0 comments on commit 3d461ce

Please sign in to comment.