Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion patchbay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ iroh-metrics = ["dep:iroh-metrics"]
iroh-metrics = { version = "1.0.2", optional = true }
anyhow = "1"
derive_more = { version = "2.1.1", features = ["debug", "display", "eq"] }
futures = "0.3"
futures-lite = "2.6"
ipnet = { version = "2.12", features = ["serde"] }
libc = "0.2"
netlink-packet-core = "0.9"
Expand Down
2 changes: 1 addition & 1 deletion patchbay/src/netlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{
};

use anyhow::{anyhow, Context, Result};
use futures::StreamExt;
use futures_lite::StreamExt;
use netlink_packet_core::{
NetlinkHeader, NetlinkMessage, NetlinkPayload, NLM_F_ACK, NLM_F_CREATE, NLM_F_DUMP, NLM_F_EXCL,
NLM_F_REPLACE, NLM_F_REQUEST,
Expand Down
6 changes: 3 additions & 3 deletions patchbay/src/tests/nat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ async fn wan_pool_selection() -> Result<()> {
#[tokio::test(flavor = "current_thread")]
#[traced_test]
async fn reflexive_ip_all_combos() -> Result<()> {
use futures::StreamExt as _;
use futures_buffered::BufferedStreamExt;
use futures_lite::StreamExt as _;
use strum::IntoEnumIterator;

// Nat::None + Via*Isp is skipped: no return route from DC → device subnet.
Expand All @@ -284,7 +284,7 @@ async fn reflexive_ip_all_combos() -> Result<()> {
.flat_map(|(m, w, p)| BindMode::iter().map(move |b| (m, w, p, b)))
.collect();

let failures: Vec<String> = futures::stream::iter(combos.into_iter().enumerate().map(
let failures: Vec<String> = futures_lite::stream::iter(combos.into_iter().enumerate().map(
|(i, (mode, wiring, proto, bind))| {
let port_base = 14_000u16 + (i as u16) * 10;
async move {
Expand All @@ -309,7 +309,7 @@ async fn reflexive_ip_all_combos() -> Result<()> {
},
))
.buffered_unordered(8)
.filter_map(|x| async { x })
.filter_map(|x| x)
.collect()
.await;

Expand Down
Loading