remove unused `maxStatusAge` from `SyncManager` (#3382)
The `SyncManager` has a leftover optional `maxStatusAge` parameter in its constructor that used to configure the libp2p `Status` polling rate. This parameter was replaced with a constant in #1827 and is no longer functional. This patch removes the `maxStatusAge` leftovers.
This commit is contained in:
parent
2160d02977
commit
15fc7534cf
|
@ -46,7 +46,6 @@ type
|
|||
pool: PeerPool[A, B]
|
||||
responseTimeout: chronos.Duration
|
||||
sleepTime: chronos.Duration
|
||||
maxStatusAge: uint64
|
||||
maxHeadAge: uint64
|
||||
toleranceValue: uint64
|
||||
getLocalHeadSlot: GetSlotCallback
|
||||
|
@ -116,7 +115,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
|||
getBackfillSlotCb: GetSlotCallback,
|
||||
progressPivot: Slot,
|
||||
blockVerifier: BlockVerifier,
|
||||
maxStatusAge = uint64(SLOTS_PER_EPOCH * 4),
|
||||
maxHeadAge = uint64(SLOTS_PER_EPOCH * 1),
|
||||
sleepTime = (int(SLOTS_PER_EPOCH) *
|
||||
int(SECONDS_PER_SLOT)).seconds,
|
||||
|
@ -132,7 +130,6 @@ proc newSyncManager*[A, B](pool: PeerPool[A, B],
|
|||
|
||||
var res = SyncManager[A, B](
|
||||
pool: pool,
|
||||
maxStatusAge: maxStatusAge,
|
||||
getLocalHeadSlot: getLocalHeadSlotCb,
|
||||
getLocalWallSlot: getLocalWallSlotCb,
|
||||
getSafeSlot: getSafeSlot,
|
||||
|
|
Loading…
Reference in New Issue