diff --git a/rustfs/src/main.rs b/rustfs/src/main.rs index cfbac1fb9..4e47a63de 100644 --- a/rustfs/src/main.rs +++ b/rustfs/src/main.rs @@ -39,7 +39,7 @@ async fn run(opt: config::Opt) -> Result<()> { debug!("opt: {:?}", &opt); // Setup S3 service let service = { - let mut b = S3ServiceBuilder::new(storage::ecfs::EC::new( + let mut b = S3ServiceBuilder::new(storage::ecfs::FS::new( opt.address.clone(), opt.volumes.clone(), )?); diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index aacd24b2a..d188af8ec 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -10,19 +10,19 @@ use anyhow::Result; use ecstore::store::ECStore; #[derive(Debug)] -pub struct EC { - store: ECStore, +pub struct FS { + pub store: ECStore, } -impl EC { +impl FS { pub fn new(address: String, endpoints: Vec) -> Result { let store: ECStore = ECStore::new(address, endpoints)?; - Ok(EC { store }) + Ok(Self { store }) } } #[async_trait::async_trait] -impl S3 for EC { +impl S3 for FS { #[tracing::instrument] async fn create_bucket( &self,