drop common/error

This commit is contained in:
weisd
2025-06-06 16:46:18 +08:00
parent 7032318858
commit 15a3012d05
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ use rustfs_filemeta::{MetaCacheEntry, MetacacheReader, MetacacheWriter};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::{error::Error, io::Cursor}; use std::{error::Error, io::Cursor};
use tokio::spawn; use tokio::spawn;
use tonic::codegen::tokio_stream::StreamExt;
use tonic::Request; use tonic::Request;
use tonic::codegen::tokio_stream::StreamExt;
const CLUSTER_ADDR: &str = "http://localhost:9000"; const CLUSTER_ADDR: &str = "http://localhost:9000";
@@ -127,7 +127,7 @@ async fn walk_dir() -> Result<(), Box<dyn Error>> {
println!("{}", resp.error_info.unwrap_or("".to_string())); println!("{}", resp.error_info.unwrap_or("".to_string()));
} }
let entry = serde_json::from_str::<MetaCacheEntry>(&resp.meta_cache_entry) let entry = serde_json::from_str::<MetaCacheEntry>(&resp.meta_cache_entry)
.map_err(|_e| common::error::Error::from_string(format!("Unexpected response: {:?}", response))) .map_err(|_e| std::io::Error::other(format!("Unexpected response: {:?}", response)))
.unwrap(); .unwrap();
out.write_obj(&entry).await.unwrap(); out.write_obj(&entry).await.unwrap();
} }
+1 -1
View File
@@ -20,7 +20,7 @@ mkdir -p ./target/volume/test{0..4}
if [ -z "$RUST_LOG" ]; then if [ -z "$RUST_LOG" ]; then
export RUST_BACKTRACE=1 export RUST_BACKTRACE=1
# export RUST_LOG="rustfs=debug,ecstore=debug,s3s=debug,iam=debug" # export RUST_LOG="rustfs=debug,ecstore=debug,s3s=debug,iam=debug"
export RUST_LOG="rustfs=info,ecstore=info,s3s=info,iam=info,rustfs-obs=info" export RUST_LOG="rustfs=info,ecstore=info,s3s=debug"
fi fi
# export RUSTFS_ERASURE_SET_DRIVE_COUNT=5 # export RUSTFS_ERASURE_SET_DRIVE_COUNT=5