Skip to content

Commit

Permalink
Don't pop of p2p protocol from relay address as it isn't there
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Jun 14, 2024
1 parent 7f3b38c commit 0d57801
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions aquadoggo/src/network/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,6 @@ pub async fn connect_to_relay(

// Now that we have a reply from the relay node we can add their peer id to the
// relay address.

// Pop off the "p2p" protocol.
let _ = relay_address.pop();

// Add it back on again with the relay nodes peer id included.
relay_address.push(Protocol::P2p(peer_id));

// Update values on the config.
Expand Down

0 comments on commit 0d57801

Please sign in to comment.