Skip to content

Commit

Permalink
Remove wrong assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez committed Sep 14, 2024
1 parent 65ef357 commit 73dc00d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/core/src/node/network_bridge/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,14 +677,10 @@ async fn wait_for_gw_confirmation(

match deserialized {
NetMessage::V1(NetMessageV1::Connect(ConnectMsg::Response {
msg:
ConnectResponse::AcceptedBy {
accepted, acceptor, ..
},
msg: ConnectResponse::AcceptedBy { accepted, .. },
..
})) => {
// the first message should always be a response to the initial connection request at the gateway
debug_assert_eq!(acceptor.peer.addr, conn.remote_addr());
if accepted {
return Ok(InternalEvent::OutboundGwConnConfirmed(gw_peer_id, conn));
}
Expand Down

0 comments on commit 73dc00d

Please sign in to comment.