Skip to content

Commit

Permalink
rm more debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Aug 28, 2024
1 parent ef00161 commit 42508dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/channels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ pub(crate) struct ChannelMap {
channels: HashMap<String, ChannelHandle>,
local_id: Vec<Option<String>>,
remote_id: Vec<Option<String>>,
pub messages: (Sender<Message>, Receiver<Message>),
}

impl ChannelMap {
Expand All @@ -365,7 +364,6 @@ impl ChannelMap {
// This makes sure that 0 may be used for stream-level extensions.
local_id: vec![None],
remote_id: vec![],
messages: async_channel::unbounded(),
}
}

Expand Down
7 changes: 2 additions & 5 deletions src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ pub struct Protocol<IO: AsyncWrite + AsyncRead + Send + Unpin + 'static> {
state: State,
options: Options,
handshake: Option<HandshakeResult>,
#[allow(private_interfaces)]
pub channels: ChannelMap,
channels: ChannelMap,
command_rx: Receiver<Command>,
command_tx: CommandTx,
outbound_rx: Receiver<Vec<ChannelMessage>>,
Expand Down Expand Up @@ -199,9 +198,7 @@ where
//channel_messages: async_channel::unbounded(),
}
}
pub fn receiver_for_all_channel_messages(&self) -> Receiver<Message> {
self.channels.messages.1.clone()
}

/// Whether this protocol stream initiated the underlying IO connection.
pub fn is_initiator(&self) -> bool {
self.options.is_initiator
Expand Down

0 comments on commit 42508dd

Please sign in to comment.