*Close filter stream after processing buffer
This commit is contained in:
parent
a105c9471d
commit
a8607150e8
|
@ -329,6 +329,7 @@ export default class IpfsProvider extends BaseProvider {
|
||||||
.then(() => streamPromise)
|
.then(() => streamPromise)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
handleBuffer();
|
handleBuffer();
|
||||||
|
filterPromise.then(() => streamPromise).then(() => filter.close());
|
||||||
resp = resp as StatFileResponse;
|
resp = resp as StatFileResponse;
|
||||||
if (resp.size <= MAX_CACHE_SIZE) {
|
if (resp.size <= MAX_CACHE_SIZE) {
|
||||||
cacheBuffer = Uint8Array.from(
|
cacheBuffer = Uint8Array.from(
|
||||||
|
|
Reference in New Issue