Skip to content

Commit

Permalink
fix: resend checks should be faster to make transport more efficient (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iduartgomez authored Oct 19, 2024
1 parent a78ed3d commit a424c2a
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 137 deletions.
88 changes: 88 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ pico-args = "0.5"
statrs = "0.17"
tempfile = "3"
tracing = "0.1"
console-subscriber = { version = "0.4" }

[features]
default = ["redb", "trace", "websocket"]
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/node/network_bridge/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ mod tests {
if i > 3 {
// Create the successful connection
let (remote, ev) = tokio::time::timeout(
Duration::from_secs(1),
Duration::from_secs(2),
test.transport.outbound_recv.recv(),
)
.await?
Expand Down Expand Up @@ -1693,7 +1693,7 @@ mod tests {
let mut conn_count = 0;
let mut gw_rejected = false;
for conn_num in 3..Ring::DEFAULT_MAX_HOPS_TO_LIVE {
let event = tokio::time::timeout(Duration::from_secs(1), handler.wait_for_events())
let event = tokio::time::timeout(Duration::from_secs(2), handler.wait_for_events())
.await??;
match event {
Event::OutboundConnectionSuccessful {
Expand Down
Loading

0 comments on commit a424c2a

Please sign in to comment.