mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-16 18:08:21 +00:00
run init
This commit is contained in:
+10
-4
@@ -1,19 +1,25 @@
|
||||
use uuid::Uuid;
|
||||
|
||||
use super::endpoint::Endpoint;
|
||||
use crate::endpoint::EndpointServerPools;
|
||||
use super::error::Result;
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct ECStore {
|
||||
pub id: uuid::Uuid,
|
||||
pub disks: Vec<Box<dyn DiskAPI>>,
|
||||
// pub disks: Vec<Box<dyn DiskAPI>>,
|
||||
pub pools: Vec<Sets>,
|
||||
pub peer: Vec<String>,
|
||||
}
|
||||
|
||||
impl ECStore {
|
||||
pub fn new(endpoints: EndpointServerPools) {
|
||||
unimplemented!()
|
||||
pub fn new(endpoints: Vec<String>) -> Result<Self> {
|
||||
Ok(ECStore {
|
||||
id: Uuid::nil(),
|
||||
pools: Vec::new(),
|
||||
peer: Vec::new(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user