fix: 去除anyhow提供的错误处理,统一使用自定义的Error和Result

This commit is contained in:
shiro.lee
2024-08-05 18:48:45 +08:00
parent a5f9b392ed
commit 7b8c11ecf3
18 changed files with 217 additions and 241 deletions
+3 -4
View File
@@ -3,13 +3,12 @@ use tracing::warn;
use uuid::Uuid;
use crate::{
disk::error::DiskError,
disk::format::{FormatErasureVersion, FormatMetaVersion, FormatV3},
disk::{DiskStore, FORMAT_CONFIG_FILE, RUSTFS_META_BUCKET},
disk_api::DiskError,
format::{FormatErasureVersion, FormatMetaVersion, FormatV3},
error::{Error, Result},
};
use anyhow::{Error, Result};
use std::{
collections::{hash_map::Entry, HashMap},
fmt::Debug,