From a66cc17c9e46f3529db6cc40c03df2291e1eca7f Mon Sep 17 00:00:00 2001 From: eitanm-starkware <144585602+eitanm-starkware@users.noreply.github.com> Date: Tue, 9 Jul 2024 22:36:34 +0300 Subject: [PATCH] fix(network): replace panic with error in unexpected swarm event (#2208) --- crates/papyrus_network/src/network_manager/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/papyrus_network/src/network_manager/mod.rs b/crates/papyrus_network/src/network_manager/mod.rs index 6b22597854..d0b15991da 100644 --- a/crates/papyrus_network/src/network_manager/mod.rs +++ b/crates/papyrus_network/src/network_manager/mod.rs @@ -268,7 +268,7 @@ impl GenericNetworkManager { | SwarmEvent::Dialing { .. } | SwarmEvent::NewExternalAddrCandidate { .. } => {} _ => { - panic!("Unexpected event {event:?}"); + error!("Unexpected event {event:?}"); } } }