From 62a5d1437d72af9316409f044cd736aad15bf991 Mon Sep 17 00:00:00 2001 From: Simon Wicky Date: Tue, 19 May 2026 11:31:13 +0200 Subject: [PATCH] tweak --- common/nym-lp-data/src/fragmentation/fragment.rs | 4 +--- nym-node/src/node/lp/data/mod.rs | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/common/nym-lp-data/src/fragmentation/fragment.rs b/common/nym-lp-data/src/fragmentation/fragment.rs index 2fce0fb2b3..5b4f68bfde 100644 --- a/common/nym-lp-data/src/fragmentation/fragment.rs +++ b/common/nym-lp-data/src/fragmentation/fragment.rs @@ -28,9 +28,7 @@ pub struct FragmentHeader { /// set was fully received as well as to perform bound checks. total_fragments: u8, - /// Since message is always fragmented into payloads of constant lengths - /// (apart from possibly the last one), there's no need to use offsets like ipv4/ipv6 - /// and we can just simply enumerate the fragments to later reconstruct the message. + /// Index of this fragment, in (0..total_fragments) current_fragment: u8, reserved: [u8; 4], diff --git a/nym-node/src/node/lp/data/mod.rs b/nym-node/src/node/lp/data/mod.rs index 960f2d0333..94bcb081a8 100644 --- a/nym-node/src/node/lp/data/mod.rs +++ b/nym-node/src/node/lp/data/mod.rs @@ -56,12 +56,10 @@ impl LpDataSetup { output_tx, shutdown.clone_shutdown_token(), ); - //let sender = LpDataSender::new(data_state, output_rx, shutdown.clone_shutdown_token()); Ok(LpDataSetup { listener, handler, - //sender, shutdown, }) }