add getCid trace statement, fix compilation (even if I don't understand what broke)
This commit is contained in:
parent
38516ef597
commit
6869475283
|
@ -203,6 +203,9 @@ method getBlock*(self: RepoStore, treeCid: Cid, index: Natural): Future[?!Block]
|
||||||
without cid =? await self.getCid(treeCid, index), err:
|
without cid =? await self.getCid(treeCid, index), err:
|
||||||
return failure(err)
|
return failure(err)
|
||||||
|
|
||||||
|
trace "Mapped tree cid and index into block cid", treeCid=treeCid,
|
||||||
|
index=index, cid=cid
|
||||||
|
|
||||||
await self.getBlock(cid)
|
await self.getBlock(cid)
|
||||||
|
|
||||||
method getBlock*(self: RepoStore, address: BlockAddress): Future[?!Block] =
|
method getBlock*(self: RepoStore, address: BlockAddress): Future[?!Block] =
|
||||||
|
|
|
@ -5,7 +5,6 @@ import pkg/chronos/profiler
|
||||||
import pkg/metrics
|
import pkg/metrics
|
||||||
|
|
||||||
import codex/utils/asyncprofiler/metricscollector
|
import codex/utils/asyncprofiler/metricscollector
|
||||||
import ../../helpers
|
|
||||||
|
|
||||||
suite "asyncprofiler metrics collector":
|
suite "asyncprofiler metrics collector":
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@ import chronos/profiler
|
||||||
|
|
||||||
import codex/utils/asyncprofiler/serialization
|
import codex/utils/asyncprofiler/serialization
|
||||||
|
|
||||||
import ../../helpers
|
suite "asyncprofiler metrics serializer":
|
||||||
|
|
||||||
checksuite "asyncprofiler metrics serializer":
|
|
||||||
|
|
||||||
let fooLoc = SrcLoc(
|
let fooLoc = SrcLoc(
|
||||||
procedure: "foo",
|
procedure: "foo",
|
||||||
|
|
Loading…
Reference in New Issue