chore: retry empty responses (#13923)

This commit is contained in:
Matthias Seitz
2025-01-22 19:29:22 +01:00
committed by GitHub
parent 82a0734c19
commit 22a5c10a07
2 changed files with 12 additions and 9 deletions

View File

@ -94,6 +94,8 @@ pub trait HeadersClient: DownloadClient {
}
/// A Future that resolves to a single block body.
///
/// Returns `None` if the peer responded with an empty header response.
#[derive(Debug)]
#[must_use = "futures do nothing unless polled"]
pub struct SingleHeaderRequest<Fut> {