From 546ec7058915b60a5bbd0c24f42384af467b1cea Mon Sep 17 00:00:00 2001 From: Bulat-Ziganshin Date: Sat, 27 Aug 2022 18:41:38 +0300 Subject: [PATCH] Manifest: renamed operations to addProtection/removeProtection --- codex/erasure/erasure.nim | 4 ++-- codex/manifest/manifest.nim | 14 ++++++-------- tests/codex/testmanifest.nim | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/codex/erasure/erasure.nim b/codex/erasure/erasure.nim index 317d2ff2..3eff7a02 100644 --- a/codex/erasure/erasure.nim +++ b/codex/erasure/erasure.nim @@ -82,7 +82,7 @@ proc encode*( parity = parity trace "Erasure coding manifest", blocks, parity - without var encoded =? Manifest.new(manifest, blocks, parity), error: + without var encoded =? manifest.addProtection(blocks, parity), error: trace "Unable to create manifest", msg = error.msg return error.failure @@ -253,7 +253,7 @@ proc decode*( finally: decoder.release() - without decoded =? encoded.unprotect(blocks = encoded.blocks[0..