Skip to main content

response_timer

Function response_timer 

Source
pub(super) fn response_timer(
    handler: &Handler,
    download_deadline: Option<Instant>,
) -> Sleep ⓘ
Expand description

Returns the timer for the response to handler.

A block download that started through compact relay keeps the deadline it started with, so the whole download, including a fallback to the full block, has one request timeout.