diff --git a/beacon_node/client/src/builder.rs b/beacon_node/client/src/builder.rs index 31eb4dfea..27047e78d 100644 --- a/beacon_node/client/src/builder.rs +++ b/beacon_node/client/src/builder.rs @@ -432,49 +432,6 @@ where } } -impl - ClientBuilder< - Witness< - TStoreMigrator, - TSlotClock, - TEth1Backend, - TEthSpec, - WebSocketSender, - THotStore, - TColdStore, - >, - > -where - TStoreMigrator: Migrate, - TSlotClock: SlotClock + 'static, - TEth1Backend: Eth1ChainBackend + 'static, - TEthSpec: EthSpec + 'static, - THotStore: ItemStore + 'static, - TColdStore: ItemStore + 'static, -{ - /// Specifies that the `BeaconChain` should publish events using the WebSocket server. - pub fn websocket_event_handler(mut self, config: WebSocketConfig) -> Result { - let context = self - .runtime_context - .as_ref() - .ok_or_else(|| "websocket_event_handler requires a runtime_context")? - .service_context("ws".into()); - - let (sender, listening_addr): (WebSocketSender, Option<_>) = if config.enabled { - let (sender, listening_addr) = - websocket_server::start_server(context.executor, &config)?; - (sender, Some(listening_addr)) - } else { - (WebSocketSender::dummy(), None) - }; - - self.event_handler = Some(sender); - self.websocket_listen_addr = listening_addr; - - Ok(self) - } -} - impl ClientBuilder< Witness< @@ -503,7 +460,7 @@ where let context = self .runtime_context .as_ref() - .ok_or_else(|| "websocket_event_handler requires a runtime_context")? + .ok_or_else(|| "tee_event_handler requires a runtime_context")? .service_context("ws".into()); let log = context.log().clone();