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

fix: remove argument from .stats.bw* #699

Merged
merged 2 commits into from
Feb 22, 2018
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
2 changes: 1 addition & 1 deletion src/stats/bw-pull-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const transformChunk = require('./bw-util')
const deferred = require('pull-defer')

module.exports = (send) => {
return (hash, opts) => {
return (opts) => {
opts = opts || {}

const p = deferred.source()
Expand Down
2 changes: 1 addition & 1 deletion src/stats/bw-readable-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const pump = require('pump')
const transformChunk = require('./bw-util')

module.exports = (send) => {
return (hash, opts) => {
return (opts) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm.. how doesn't this change break tests?

Copy link
Contributor Author

@hacdias hacdias Feb 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No because we're not testing the options yet. Although the build failed due to 'JavaScript heap out of memory'.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it

opts = opts || {}

const pt = new Stream.Transform({
Expand Down