Remove unneeded check.

This commit is contained in:
cheatfate 2022-01-07 11:26:41 +02:00
parent f35c55e590
commit 5021800791
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 0 additions and 10 deletions

View File

@ -243,16 +243,6 @@ proc syncBackwardStep[A, B](man: SyncManager[A, B], index: int, peer: A) {.
peer.updateScore(PeerScoreGoodStatus)
peerSlot = newPeerSlot
if headAge <= man.maxHeadAge:
info "We are in sync with network", wall_clock_slot = wallSlot,
remote_head_slot = peerSlot, local_head_slot = headSlot,
peer = peer, peer_score = peer.getScore(), index = index,
peer_speed = peer.netKbps(), topics = "syncman"
# We clear SyncManager's `notInSyncEvent` so all the workers will become
# sleeping soon.
man.notInSyncEvent.clear()
return
let firstSlot = man.getFirstSlot()
if firstSlot == man.getLastSlot():