mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-19 17:58:23 +00:00
remove unused sync_queue
types (#4316)
`SyncManagerError` and `sync_queue.BeaconBlocksRes` are unused and can be removed for cleanup (verified with `{.deprecated.}`).
This commit is contained in:
parent
35b1104bea
commit
94b3df25f8
@ -77,8 +77,7 @@ type
|
|||||||
stamp*: chronos.Moment
|
stamp*: chronos.Moment
|
||||||
slots*: uint64
|
slots*: uint64
|
||||||
|
|
||||||
SyncManagerError* = object of CatchableError
|
BeaconBlocksRes = NetRes[List[ref ForkedSignedBeaconBlock, MAX_REQUEST_BLOCKS]]
|
||||||
BeaconBlocksRes* = NetRes[List[ref ForkedSignedBeaconBlock, MAX_REQUEST_BLOCKS]]
|
|
||||||
|
|
||||||
proc now*(sm: typedesc[SyncMoment], slots: uint64): SyncMoment {.inline.} =
|
proc now*(sm: typedesc[SyncMoment], slots: uint64): SyncMoment {.inline.} =
|
||||||
SyncMoment(stamp: now(chronos.Moment), slots: slots)
|
SyncMoment(stamp: now(chronos.Moment), slots: slots)
|
||||||
|
@ -79,9 +79,6 @@ type
|
|||||||
blockVerifier: BlockVerifier
|
blockVerifier: BlockVerifier
|
||||||
ident*: string
|
ident*: string
|
||||||
|
|
||||||
SyncManagerError* = object of CatchableError
|
|
||||||
BeaconBlocksRes* = NetRes[seq[ref ForkedSignedBeaconBlock]]
|
|
||||||
|
|
||||||
chronicles.formatIt SyncQueueKind: toLowerAscii($it)
|
chronicles.formatIt SyncQueueKind: toLowerAscii($it)
|
||||||
|
|
||||||
template shortLog*[T](req: SyncRequest[T]): string =
|
template shortLog*[T](req: SyncRequest[T]): string =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user