From 105d02993b86eea2e31b076b5161837e2f6171a2 Mon Sep 17 00:00:00 2001 From: Bulat-Ziganshin Date: Fri, 26 Aug 2022 04:21:23 +0300 Subject: [PATCH] Used copyAllScalarFields when building unprotected Manifest from a protected one --- codex/erasure/erasure.nim | 9 ++++----- codex/manifest/manifest.nim | 35 +++++++++++++++++++++++++++-------- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/codex/erasure/erasure.nim b/codex/erasure/erasure.nim index e1252b43..317d2ff2 100644 --- a/codex/erasure/erasure.nim +++ b/codex/erasure/erasure.nim @@ -156,8 +156,7 @@ proc encode*( proc decode*( self: Erasure, encoded: Manifest): Future[?!Manifest] {.async.} = - ## Decode a protected manifest into it's original - ## manifest + ## Decode a protected manifest into its original manifest ## ## `encoded` - the encoded (protected) manifest to ## be recovered @@ -254,10 +253,10 @@ proc decode*( finally: decoder.release() - without decoded =? Manifest.new(blocks = encoded.blocks[0..