diff --git a/packages/ipfs-core/src/components/dag/export.js b/packages/ipfs-core/src/components/dag/export.js index 6094357ac4..783e3662e2 100644 --- a/packages/ipfs-core/src/components/dag/export.js +++ b/packages/ipfs-core/src/components/dag/export.js @@ -60,7 +60,7 @@ export function createExport ({ repo, preload, codecs }) { try { const load = makeLoader(repo, writer, { signal: options.signal, timeout: options.timeout }, codecs) await walk({ cid, load }) - writer.close() + await writer.close() } catch (e) { err = e }