set poll interval
This commit is contained in:
parent
6d837bcdaa
commit
9a4a6066c8
|
@ -38,10 +38,12 @@ const
|
||||||
BLOB_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000
|
BLOB_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000
|
||||||
## How long to wait for blobs to arrive over gossip before fetching.
|
## How long to wait for blobs to arrive over gossip before fetching.
|
||||||
|
|
||||||
DATA_COLUMN_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000
|
DATA_COLUMN_GOSSIP_WAIT_TIME_NS* = 2.5 * 1_000_000_000
|
||||||
|
|
||||||
POLL_INTERVAL = 1.seconds
|
POLL_INTERVAL = 1.seconds
|
||||||
|
|
||||||
|
POLL_INTERVAL_DATA_COLUMNS = 4.seconds
|
||||||
|
|
||||||
type
|
type
|
||||||
BlockVerifierFn* = proc(
|
BlockVerifierFn* = proc(
|
||||||
signedBlock: ForkedSignedBeaconBlock,
|
signedBlock: ForkedSignedBeaconBlock,
|
||||||
|
@ -564,7 +566,7 @@ proc requestManagerDataColumnLoop(
|
||||||
rman: RequestManager) {.async: (raises: [CancelledError]).} =
|
rman: RequestManager) {.async: (raises: [CancelledError]).} =
|
||||||
while true:
|
while true:
|
||||||
|
|
||||||
await sleepAsync(POLL_INTERVAL)
|
await sleepAsync(POLL_INTERVAL_DATA_COLUMNS)
|
||||||
if rman.inhibit():
|
if rman.inhibit():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue