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
|
SyncManager*[A, B] = ref object
|
||||||
pool: PeerPool[A, B]
|
pool: PeerPool[A, B]
|
||||||
responseTimeout: chronos.Duration
|
responseTimeout: chronos.Duration
|
||||||
sleepTime: chronos.Duration
|
|
||||||
maxHeadAge: uint64
|
maxHeadAge: uint64
|
||||||
toleranceValue: uint64
|
toleranceValue: uint64
|
||||||
getLocalHeadSlot: GetSlotCallback
|
getLocalHeadSlot: GetSlotCallback
|
||||||
|
@ -116,8 +115,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
||||||
progressPivot: Slot,
|
progressPivot: Slot,
|
||||||
blockVerifier: BlockVerifier,
|
blockVerifier: BlockVerifier,
|
||||||
maxHeadAge = uint64(SLOTS_PER_EPOCH * 1),
|
maxHeadAge = uint64(SLOTS_PER_EPOCH * 1),
|
||||||
sleepTime = (int(SLOTS_PER_EPOCH) *
|
|
||||||
int(SECONDS_PER_SLOT)).seconds,
|
|
||||||
chunkSize = uint64(SLOTS_PER_EPOCH),
|
chunkSize = uint64(SLOTS_PER_EPOCH),
|
||||||
toleranceValue = uint64(1)
|
toleranceValue = uint64(1)
|
||||||
): SyncManager[A, B] =
|
): SyncManager[A, B] =
|
||||||
|
@ -137,7 +134,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
||||||
getLastSlot: getLastSlot,
|
getLastSlot: getLastSlot,
|
||||||
progressPivot: progressPivot,
|
progressPivot: progressPivot,
|
||||||
maxHeadAge: maxHeadAge,
|
maxHeadAge: maxHeadAge,
|
||||||
sleepTime: sleepTime,
|
|
||||||
chunkSize: chunkSize,
|
chunkSize: chunkSize,
|
||||||
blockVerifier: blockVerifier,
|
blockVerifier: blockVerifier,
|
||||||
notInSyncEvent: newAsyncEvent(),
|
notInSyncEvent: newAsyncEvent(),
|
||||||
|
|
Loading…
Reference in New Issue