Skip to content

Commit

Permalink
refactor: rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jun 25, 2024
1 parent 0e3678d commit 7ff0cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/servers/udp/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl Udp {

let socket = socket.socket;

let direct = Receiver {
let receiver = Receiver {
socket,
tracker,
data: RefCell::new([0; MAX_PACKET_SIZE]),
Expand All @@ -368,7 +368,7 @@ impl Udp {
let local_addr = local_addr.clone();
tokio::task::spawn(async move {
tracing::debug!(target: "UDP TRACKER: Udp::run_with_graceful_shutdown::task", local_addr, "(listening...)");
let () = Self::run_udp_server_main(direct).await;
let () = Self::run_udp_server_main(receiver).await;
})
};

Expand Down

0 comments on commit 7ff0cd2

Please sign in to comment.