From a3c95be98603f67dc872789eebe22fff0f70d5b5 Mon Sep 17 00:00:00 2001 From: gmega Date: Wed, 7 Feb 2024 11:45:51 -0300 Subject: [PATCH] fix log messages --- codex/stores/repostore.nim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/codex/stores/repostore.nim b/codex/stores/repostore.nim index 659e0298..224069ca 100644 --- a/codex/stores/repostore.nim +++ b/codex/stores/repostore.nim @@ -142,8 +142,8 @@ method getCidAndProof*( trace "Unable to decode cid and proof", err = err.msg return failure(err) - trace "Got cid and proof for block", treeCid=treeCid, index=index, - cid, proof = $proof + trace "Got cid and proof for block", treeCid = treeCid, index = index, + cid = cid, proof = $proof return success (cid, proof) @@ -162,10 +162,10 @@ method getCid*( trace "Error getting cid from datastore", err = err.msg, key return failure(err) - trace "Got cid for block", treeCid=treeCid, index=index, - cid, proof = $proof + let cid = (Cid, CodexProof).decodeCid(value) + trace "Got cid for block", treeCid = treeCid, index = index, cid = cid - return (Cid, CodexProof).decodeCid(value) + return cid method getBlock*(self: RepoStore, cid: Cid): Future[?!Block] {.async.} = ## Get a block from the blockstore