mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Fix eth2 compilation by feature gating SseEventSource (#8819)
`eth2` is currently unable to be built without the `events` feature. Feature gates the `SseEventSource` match arm in the `status` function. Co-Authored-By: Mac L <mjladson@pm.me>
This commit is contained in:
@@ -102,6 +102,7 @@ impl Error {
|
||||
None
|
||||
}
|
||||
}
|
||||
#[cfg(feature = "events")]
|
||||
Error::SseEventSource(_) => None,
|
||||
Error::ServerMessage(msg) => StatusCode::try_from(msg.code).ok(),
|
||||
Error::ServerIndexedMessage(msg) => StatusCode::try_from(msg.code).ok(),
|
||||
|
||||
Reference in New Issue
Block a user