mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Remove more out of date comments
This commit is contained in:
@@ -519,10 +519,6 @@ impl<T: SlotClock, E: EthSpec> BeaconNodeFallback<T, E> {
|
|||||||
|
|
||||||
/// Run `func` against each candidate in `self`, returning immediately if a result is found.
|
/// Run `func` against each candidate in `self`, returning immediately if a result is found.
|
||||||
/// Otherwise, return all the errors encountered along the way.
|
/// Otherwise, return all the errors encountered along the way.
|
||||||
///
|
|
||||||
/// First this function will try all nodes with a suitable status. If no candidates are suitable
|
|
||||||
/// or all the requests fail, it will try updating the status of all unsuitable nodes and
|
|
||||||
/// re-running `func` again.
|
|
||||||
pub async fn first_success<F, O, Err, R>(&self, func: F) -> Result<O, Errors<Err>>
|
pub async fn first_success<F, O, Err, R>(&self, func: F) -> Result<O, Errors<Err>>
|
||||||
where
|
where
|
||||||
F: Fn(BeaconNodeHttpClient) -> R,
|
F: Fn(BeaconNodeHttpClient) -> R,
|
||||||
@@ -579,9 +575,6 @@ impl<T: SlotClock, E: EthSpec> BeaconNodeFallback<T, E> {
|
|||||||
/// Run `func` against all candidates in `self`, collecting the result of `func` against each
|
/// Run `func` against all candidates in `self`, collecting the result of `func` against each
|
||||||
/// candidate.
|
/// candidate.
|
||||||
///
|
///
|
||||||
/// First this function will try all nodes with a suitable status. If no candidates are suitable
|
|
||||||
/// it will try updating the status of all unsuitable nodes and re-running `func` again.
|
|
||||||
///
|
|
||||||
/// Note: This function returns `Ok(())` if `func` returned successfully on all beacon nodes.
|
/// Note: This function returns `Ok(())` if `func` returned successfully on all beacon nodes.
|
||||||
/// It returns a list of errors along with the beacon node id that failed for `func`.
|
/// It returns a list of errors along with the beacon node id that failed for `func`.
|
||||||
/// Since this ignores the actual result of `func`, this function should only be used for beacon
|
/// Since this ignores the actual result of `func`, this function should only be used for beacon
|
||||||
|
|||||||
Reference in New Issue
Block a user