This commit is contained in:
Jędrzej Stuczyński
2026-03-06 15:37:49 +00:00
parent 16928a48a9
commit 0b97d2bf93
4 changed files with 6 additions and 1 deletions
@@ -124,6 +124,7 @@ pub(crate) struct NestedNodeConnectionHandler<S> {
/// Channel for adding new client handle and handling control requests from `NestedConnectionsController`
control_receiver: NestedNodeControlReceiver,
// client_streams: HashMap<StreamId, LpClientStream>,
}
impl<S> NestedNodeConnectionHandler<S>
@@ -43,6 +43,7 @@ pub struct LpClientConnectionHandler<S = TcpStream> {
/// Tuple contains (stream, target_address) to verify subsequent forwards go to same exit.
exit_stream: Option<(S, SocketAddr)>,
/// Forwarding channel for sending requests to the exit gateway and receiving responses.
#[allow(dead_code)]
forwarding_channel: Option<NestedClientConnection>,
}
@@ -127,6 +127,8 @@ pub struct LpIngressNodeConnectionHandler<S = TcpStream> {
state: SharedLpNodeControlState,
stats: LpConnectionStats,
transport_session: LpTransportSession,
// LOCAL receiver index to stream id
// client_streams: HashMap<ReceiverIndex, ClientStreamId>,
}
impl<S> LpIngressNodeConnectionHandler<S>
@@ -2,9 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
use crate::node::lp::control::egress::connection::NestedNodeConnectionSender;
use futures::channel::mpsc::UnboundedReceiver;
pub(crate) type NestedClientConnectionSender = ();
pub(crate) type NestedClientConnectionReceiver = ();
pub(crate) type NestedClientConnectionReceiver = UnboundedReceiver<Vec<u8>>;
pub(crate) struct NestedClientConnection {
// handle for sending into `NestedNodeConnectionHandler`