mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-13 17:35:37 +00:00
chore: update Rust to 2024 edition (#2066)
This commit is contained in:
@@ -235,11 +235,7 @@ async fn wait_ping_reachability(src_ns: &str, dst_ip: &str, reachable: bool, tim
|
||||
wait_for_condition(
|
||||
|| async {
|
||||
let ping_result = ping_test(src_ns, dst_ip, None).await;
|
||||
if reachable {
|
||||
ping_result
|
||||
} else {
|
||||
!ping_result
|
||||
}
|
||||
if reachable { ping_result } else { !ping_result }
|
||||
},
|
||||
timeout,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user