warning fix
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
let addr: std::net::SocketAddr = remote_address.parse().expect("Invalid address format");
|
||||
let p_ip = addr.ip().to_string();
|
||||
|
||||
if let Err(e) = reset_platform_routing(Some(&p_ip)) {
|
||||
if let Err(e) = reset_platform_routing(Some(&p_ip), false) {
|
||||
error!("Failed to restore routing: {}", e);
|
||||
} else {
|
||||
info!("System routing restored successfully.");
|
||||
|
||||
@@ -6,7 +6,7 @@ use netrunner_core::{
|
||||
},
|
||||
rawcast::RawCastFrame,
|
||||
};
|
||||
use netrunner_logger::{debug, warn};
|
||||
use netrunner_logger::warn;
|
||||
use smoltcp::{
|
||||
iface::{SocketHandle, SocketSet},
|
||||
socket::{Socket, tcp, udp},
|
||||
|
||||
@@ -92,7 +92,7 @@ impl SocketProvider for SmolSocketFactory {
|
||||
socket
|
||||
}
|
||||
|
||||
fn reconfigure_tcp(&self, socket: &mut tcp::Socket, profile: TrafficProfile) {
|
||||
fn reconfigure_tcp(&self, socket: &mut tcp::Socket, _profile: TrafficProfile) {
|
||||
socket.set_nagle_enabled(false);
|
||||
|
||||
socket.set_ack_delay(None);
|
||||
|
||||
@@ -4,7 +4,7 @@ use std::{
|
||||
ops::{Deref, DerefMut},
|
||||
sync::{
|
||||
Arc, LazyLock, Mutex,
|
||||
atomic::{AtomicBool, AtomicU64, AtomicUsize, Ordering},
|
||||
atomic::{AtomicBool, AtomicU64, Ordering},
|
||||
},
|
||||
time::Instant as StdInstant,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user