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
4 changes: 2 additions & 2 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 netwatch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ workspace = true
atomic-waker = "1.1.2"
bytes = "1.7"
n0-future = "0.1.3"
n0-watcher = "0.2"
n0-watcher = "0.3"
nested_enum_utils = "0.2.0"
pin-project-lite = "0.2.16"
snafu = "0.8.5"
Expand Down
4 changes: 2 additions & 2 deletions netwatch/src/netmon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ mod tests {
#[tokio::test]
async fn test_smoke_monitor() {
let mon = Monitor::new().await.unwrap();
let sub = mon.interface_state();
let mut sub = mon.interface_state();

let current = sub.get().unwrap();
let current = sub.get();
println!("current state: {current}");
}
}
4 changes: 2 additions & 2 deletions netwatch/tests/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ async fn smoke_test() -> TestResult {
// so this is more of a test to see if we gracefully handle these situations & if our
// .wasm files are without "env" imports.
tracing::info!("subscribing to netmon");
let sub = monitor.interface_state();
let mut sub = monitor.interface_state();

let current = sub.get()?;
let current = sub.get();
tracing::info!(?current, "network change");
tracing::info!("successfully subscribed to netmon");

Expand Down
Loading