mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 14:26:26 +00:00
remove unused sleepTime
from SyncManager
(#3384)
The `SyncManager` has a leftover optional `sleepTime` parameter in its constructor that used to configure the sync loop polling rate. This parameter was replaced with a constant in #1602 and is no longer functional. This patch removes the `sleepTime` leftovers.
This commit is contained in:
parent
a28900c348
commit
d1f97e209a
@ -45,7 +45,6 @@ type
|
||||
SyncManager*[A, B] = ref object
|
||||
pool: PeerPool[A, B]
|
||||
responseTimeout: chronos.Duration
|
||||
sleepTime: chronos.Duration
|
||||
maxHeadAge: uint64
|
||||
toleranceValue: uint64
|
||||
getLocalHeadSlot: GetSlotCallback
|
||||
@ -116,8 +115,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
||||
progressPivot: Slot,
|
||||
blockVerifier: BlockVerifier,
|
||||
maxHeadAge = uint64(SLOTS_PER_EPOCH * 1),
|
||||
sleepTime = (int(SLOTS_PER_EPOCH) *
|
||||
int(SECONDS_PER_SLOT)).seconds,
|
||||
chunkSize = uint64(SLOTS_PER_EPOCH),
|
||||
toleranceValue = uint64(1)
|
||||
): SyncManager[A, B] =
|
||||
@ -137,7 +134,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
||||
getLastSlot: getLastSlot,
|
||||
progressPivot: progressPivot,
|
||||
maxHeadAge: maxHeadAge,
|
||||
sleepTime: sleepTime,
|
||||
chunkSize: chunkSize,
|
||||
blockVerifier: blockVerifier,
|
||||
notInSyncEvent: newAsyncEvent(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user