diff --git a/codex/erasure/erasure.nim b/codex/erasure/erasure.nim index 56e3e1cf..7cab5d42 100644 --- a/codex/erasure/erasure.nim +++ b/codex/erasure/erasure.nim @@ -322,7 +322,7 @@ proc encodeData( return failure("Unable to store block!") idx.inc(params.steps) - without tree =? CodexTree.init(cids[]), err: + without tree =? (await CodexTree.init(cids[])), err: return failure(err) without treeCid =? tree.rootCid, err: @@ -441,7 +441,7 @@ proc decode*( finally: decoder.release() - without tree =? CodexTree.init(cids[0..