From fcfd061fc2ddf43b74e9b78ac60d7c62694fb715 Mon Sep 17 00:00:00 2001 From: Mac L Date: Mon, 16 Feb 2026 05:45:29 +0400 Subject: [PATCH] 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 --- common/eth2/src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/common/eth2/src/error.rs b/common/eth2/src/error.rs index 671a617c9e..45f2599493 100644 --- a/common/eth2/src/error.rs +++ b/common/eth2/src/error.rs @@ -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(),