This commit is contained in:
weisd
2024-06-25 17:44:46 +08:00
parent faeb477880
commit 57a10e87b6
2 changed files with 4 additions and 2 deletions

View File

@@ -47,4 +47,4 @@ pub struct Objects {
#[async_trait::async_trait]
trait DiskAPI: Debug + Send + Sync + 'static {}
pub trait StorageAPI {}
pub trait StorageAPI: Debug + Send + Sync + 'static {}

View File

@@ -1,3 +1,5 @@
use std::fmt::Debug;
use s3s::dto::*;
use s3s::s3_error;
use s3s::S3Result;
@@ -14,7 +16,7 @@ pub struct EC {
impl EC {
pub fn new(address: String, endpoints: Vec<String>) -> Result<Self> {
let store = ECStore::new(address, endpoints)?;
let store: ECStore = ECStore::new(address, endpoints)?;
Ok(EC { store })
}
}