We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f6aeef commit 8719cd2Copy full SHA for 8719cd2
lib/streams.js
@@ -92,7 +92,7 @@ class BlobReadStream extends Readable {
92
this.id = id
93
this.core = core.session({ wait: opts.wait, timeout: opts.timeout })
94
95
- this._prefetch = opts.prefetch
+ this._prefetch = opts.wait === false ? noPrefetch : opts.prefetch
96
this._lastPrefetch = null
97
if (!this._prefetch) {
98
const prefetcher = new SparsePrefetcher(opts)
@@ -174,3 +174,7 @@ module.exports = {
174
}
175
176
function noop () {}
177
+
178
+function noPrefetch () {
179
+ return null
180
+}
0 commit comments