Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use a file stream #17

Open
guoh27 opened this issue Jun 14, 2022 · 0 comments
Open

Can't use a file stream #17

guoh27 opened this issue Jun 14, 2022 · 0 comments

Comments

@guoh27
Copy link

guoh27 commented Jun 14, 2022

const readStream = fs.createReadStream(inFile)
const writeStream = fs.createWriteStream(file)
const bandwidthThrottleGroup = createBandwidthThrottleGroup({
	bytesPerSecond: 500000
})
const throttleStream = bandwidthThrottleGroup.createBandwidthThrottle(500000)
read.pipe(throttleStream).pipe(writeStream)

will always RangeError: offset is out of bounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant