feat: 修改 SessionCommandHandler 的构造函数为公有可见性,优化代码可读性;更新 WebSocket 处理逻辑以简化模式匹配
This commit is contained in:
parent
aace4eaa14
commit
73faaa95e4
@ -17,7 +17,7 @@ impl SessionCommandHandler {
|
|||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
/// * `cli_sessions` - CLI 会话服务
|
/// * `cli_sessions` - CLI 会话服务
|
||||||
pub fn new(cli_sessions: CliSessionService) -> Self {
|
pub(crate) fn new(cli_sessions: CliSessionService) -> Self {
|
||||||
Self { cli_sessions }
|
Self { cli_sessions }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -224,7 +224,7 @@ async fn handle_inbound(
|
|||||||
|
|
||||||
// 处理响应
|
// 处理响应
|
||||||
for msg in outbounds {
|
for msg in outbounds {
|
||||||
if let WsOutbound::SessionCreated { session_id, title } = &msg {
|
if let WsOutbound::SessionCreated { session_id, title: _ } = &msg {
|
||||||
*current_session_id = session_id.clone();
|
*current_session_id = session_id.clone();
|
||||||
state
|
state
|
||||||
.channel_manager
|
.channel_manager
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user