性能优化

This commit is contained in:
桥下红药
2026-03-12 21:43:18 +08:00
parent 76c1998ed9
commit 2ab9103e5b
9 changed files with 145 additions and 223 deletions
-15
View File
@@ -5,21 +5,6 @@ pub enum DHTError {
#[error("网络错误: {0}")]
Network(#[from] std::io::Error),
#[error("Bencode 解析错误: {0}")]
Bencode(String),
#[error("协议错误: {0}")]
Protocol(String),
#[error("超时")]
Timeout,
#[error("未找到 Peer")]
NoPeersAvailable,
#[error("元数据验证失败")]
InvalidMetadata,
#[error("{0}")]
Other(String),
}