mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 17:26:04 +00:00
Remove unused error variant
This commit is contained in:
@@ -94,8 +94,6 @@ pub fn start_fallback_updater_service<T: SlotClock + 'static, E: EthSpec>(
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Error<T> {
|
pub enum Error<T> {
|
||||||
/// The node was unavailable and we didn't attempt to contact it.
|
|
||||||
Unavailable(CandidateError),
|
|
||||||
/// We attempted to contact the node but it failed.
|
/// We attempted to contact the node but it failed.
|
||||||
RequestFailed(T),
|
RequestFailed(T),
|
||||||
}
|
}
|
||||||
@@ -104,7 +102,6 @@ impl<T> Error<T> {
|
|||||||
pub fn request_failure(&self) -> Option<&T> {
|
pub fn request_failure(&self) -> Option<&T> {
|
||||||
match self {
|
match self {
|
||||||
Error::RequestFailed(e) => Some(e),
|
Error::RequestFailed(e) => Some(e),
|
||||||
_ => None,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user