add getCid trace statement, fix compilation (even if I don't understand what broke)

This commit is contained in:
gmega 2024-02-06 16:08:48 -03:00
parent 38516ef597
commit 6869475283
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
3 changed files with 4 additions and 4 deletions

View File

@ -203,6 +203,9 @@ method getBlock*(self: RepoStore, treeCid: Cid, index: Natural): Future[?!Block]
without cid =? await self.getCid(treeCid, index), err:
return failure(err)
trace "Mapped tree cid and index into block cid", treeCid=treeCid,
index=index, cid=cid
await self.getBlock(cid)
method getBlock*(self: RepoStore, address: BlockAddress): Future[?!Block] =

View File

@ -5,7 +5,6 @@ import pkg/chronos/profiler
import pkg/metrics
import codex/utils/asyncprofiler/metricscollector
import ../../helpers
suite "asyncprofiler metrics collector":

View File

@ -7,9 +7,7 @@ import chronos/profiler
import codex/utils/asyncprofiler/serialization
import ../../helpers
checksuite "asyncprofiler metrics serializer":
suite "asyncprofiler metrics serializer":
let fooLoc = SrcLoc(
procedure: "foo",