From 57a10e87b6e2eb7d17cf2ead42ea6267b80f0cf4 Mon Sep 17 00:00:00 2001 From: weisd Date: Tue, 25 Jun 2024 17:44:46 +0800 Subject: [PATCH] run init --- ecstore/src/store.rs | 2 +- rustfs/src/storage/ecfs.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ecstore/src/store.rs b/ecstore/src/store.rs index c5d93ef0b..93815fedd 100644 --- a/ecstore/src/store.rs +++ b/ecstore/src/store.rs @@ -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 {} diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index 6a941c085..aacd24b2a 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -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) -> Result { - let store = ECStore::new(address, endpoints)?; + let store: ECStore = ECStore::new(address, endpoints)?; Ok(EC { store }) } }