mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 11:52:42 +00:00
Backfill peer attribution (#7762)
Partly addresses https://github.com/sigp/lighthouse/issues/7744 Implement similar peer sync attribution like in #7733 for backfill sync.
This commit is contained in:
@@ -86,6 +86,11 @@ impl<K: Eq + Hash, T: ActiveRequestItems> ActiveRequests<K, T> {
|
||||
/// `add_item` may convert ReqResp success chunks into errors. This function handles the
|
||||
/// multiple errors / stream termination internally ensuring that a single `Some<Result>` is
|
||||
/// returned.
|
||||
///
|
||||
/// ## Returns
|
||||
/// - `Some` if the request has either completed or errored, and needs to be actioned by the
|
||||
/// caller.
|
||||
/// - `None` if no further action is currently needed.
|
||||
pub fn on_response(
|
||||
&mut self,
|
||||
id: K,
|
||||
|
||||
Reference in New Issue
Block a user