Skip to content

Commit

Permalink
adds some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens committed Aug 15, 2023
1 parent 832db19 commit 56822b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codex/blockexchange/engine/discovery.nim
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ proc discoveryQueueLoop(b: DiscoveryEngine) {.async.} =
trace "About to sleep discovery loop"
await sleepAsync(b.discoveryLoopSleep)

proc advertiseQueueLoop*(b: DiscoveryEngine) {.async.} =
proc advertiseQueueLoop(b: DiscoveryEngine) {.async.} =
while b.discEngineRunning:
if cids =? await b.localStore.listBlocks(blockType = b.advertiseType):
for c in cids:
Expand Down Expand Up @@ -256,7 +256,7 @@ proc new*(
advertiseType = BlockType.Both
): DiscoveryEngine =
## Create a discovery engine instance for advertising services
##
##
DiscoveryEngine(
localStore: localStore,
peers: peers,
Expand Down
3 changes: 3 additions & 0 deletions codex/streams/storestream.nim
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ method readOnce*(
self.offset += readBytes
read += readBytes

trace "read < nbytes: ", predicate=(read < nbytes)
trace "atEof:", predicate=(self.atEof)

trace "storestream finished", read
return read

Expand Down

0 comments on commit 56822b5

Please sign in to comment.