修复优雅关闭

This commit is contained in:
桥下红药
2026-01-17 19:57:21 +08:00
parent f41c45a36b
commit 2b7542c09d
4 changed files with 175 additions and 101 deletions
+3
View File
@@ -19,6 +19,9 @@ pub enum DHTError {
#[error("元数据验证失败")]
InvalidMetadata,
#[error("{0}")]
Other(String),
}
pub type Result<T> = std::result::Result<T, DHTError>;