Skip to content

Commit

Permalink
fix debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Jul 11, 2023
1 parent 6a4e9a4 commit 3af74be
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions beacon_chain/sync/request_manager.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ type

RequestManager* = object
network*: Eth2Node
inpBlockQueue*: AsyncQueue[FetchRecord]
inpBlobQueue: AsyncQueue[BlobIdentifier]
getBeaconTime: GetBeaconTimeFn
inhibit: InhibitFn
Expand Down Expand Up @@ -267,7 +266,6 @@ proc requestManagerBlockLoop(rman: RequestManager) {.async.} =
debug "Request manager block tick", blocks = shortLog(blocks),
succeed = succeed,
failed = (len(workers) - succeed),
queue_size = len(rman.inpBlockQueue),
sync_speed = speed(start, finish)

except CancelledError as exc:
Expand Down Expand Up @@ -323,14 +321,6 @@ proc stop*(rman: RequestManager) =
if not(isNil(rman.blobLoopFuture)):
rman.blobLoopFuture.cancel()

proc fetchAncestorBlocks*(rman: RequestManager, roots: seq[FetchRecord]) =
## Enqueue list missing blocks roots ``roots`` for download by
## Request Manager ``rman``.
for item in roots:
try:
rman.inpBlockQueue.addLastNoWait(item)
except AsyncQueueFullError: raiseAssert "unbounded queue"

proc fetchMissingBlobs*(rman: RequestManager,
recs: seq[BlobFetchRecord]) =
var idList: seq[BlobIdentifier]
Expand Down

0 comments on commit 3af74be

Please sign in to comment.