Skip to content

Commit

Permalink
fix(network): replace panic with error in unexpected swarm event (#2208)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitanm-starkware authored Jul 9, 2024
1 parent 5cbc483 commit a66cc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/papyrus_network/src/network_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl<SwarmT: SwarmTrait> GenericNetworkManager<SwarmT> {
| SwarmEvent::Dialing { .. }
| SwarmEvent::NewExternalAddrCandidate { .. } => {}
_ => {
panic!("Unexpected event {event:?}");
error!("Unexpected event {event:?}");
}
}
}
Expand Down

0 comments on commit a66cc17

Please sign in to comment.