diff --git a/nomos-da/network/core/src/protocols/dispersal/executor/behaviour.rs b/nomos-da/network/core/src/protocols/dispersal/executor/behaviour.rs index 5105afe7..afe2e2e2 100644 --- a/nomos-da/network/core/src/protocols/dispersal/executor/behaviour.rs +++ b/nomos-da/network/core/src/protocols/dispersal/executor/behaviour.rs @@ -540,9 +540,7 @@ impl + 'static> Netw connection_id: ConnectionId, event: THandlerOutEvent, ) { - let Either::Left(event) = event else { - unreachable!() - }; + let Either::Left(event) = event; self.stream_behaviour .on_connection_handler_event(peer_id, connection_id, event) } diff --git a/nomos-da/network/core/src/protocols/dispersal/validator/behaviour.rs b/nomos-da/network/core/src/protocols/dispersal/validator/behaviour.rs index a227ca32..f3b46abe 100644 --- a/nomos-da/network/core/src/protocols/dispersal/validator/behaviour.rs +++ b/nomos-da/network/core/src/protocols/dispersal/validator/behaviour.rs @@ -111,9 +111,7 @@ impl + 'static> Netw connection_id: ConnectionId, event: THandlerOutEvent, ) { - let Either::Left(event) = event else { - unreachable!() - }; + let Either::Left(event) = event; self.stream_behaviour .on_connection_handler_event(peer_id, connection_id, event) } diff --git a/nomos-da/network/core/src/protocols/sampling/behaviour.rs b/nomos-da/network/core/src/protocols/sampling/behaviour.rs index d8f813d3..d4e2a986 100644 --- a/nomos-da/network/core/src/protocols/sampling/behaviour.rs +++ b/nomos-da/network/core/src/protocols/sampling/behaviour.rs @@ -630,9 +630,7 @@ impl + 'static> Netw connection_id: ConnectionId, event: THandlerOutEvent, ) { - let Either::Left(event) = event else { - unreachable!() - }; + let Either::Left(event) = event; self.stream_behaviour .on_connection_handler_event(peer_id, connection_id, event) }