Skip to content

Commit

Permalink
fix(code/network): Fix flaky tests and outgoing port re-use issue (#647)
Browse files Browse the repository at this point in the history
* Use QUIC on CI

* Use QUIC by default

* Allocate new port when dialing peers

* Revert "Use QUIC by default"

This reverts commit a763759.

* Revert "Use QUIC on CI"

This reverts commit aa84572.
  • Loading branch information
romac authored Dec 6, 2024
1 parent b31b846 commit 7585849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/crates/discovery/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ impl ConnectionData {
if let Some(peer_id) = self.peer_id {
DialOpts::peer_id(peer_id)
.addresses(vec![self.multiaddr.clone()])
.allocate_new_port()
.build()
} else {
DialOpts::unknown_peer_id()
.address(self.multiaddr.clone())
.allocate_new_port()
.build()
}
}
Expand Down

0 comments on commit 7585849

Please sign in to comment.