mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 13:36:50 +00:00
rpc add local_peer
This commit is contained in:
@@ -4,7 +4,7 @@ use crate::{
|
||||
disks_layout::DisksLayout,
|
||||
endpoints::EndpointServerPools,
|
||||
error::{Error, Result},
|
||||
peer::{PeerS3Client, S3PeerSys},
|
||||
peer::S3PeerSys,
|
||||
sets::Sets,
|
||||
store_api::{
|
||||
BucketInfo, BucketOptions, CompletePart, GetObjectReader, HTTPRangeSpec, ListObjectsInfo, ListObjectsV2Info,
|
||||
@@ -104,6 +104,10 @@ impl ECStore {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn local_disks(&self) -> Vec<DiskStore> {
|
||||
self.local_disks.clone()
|
||||
}
|
||||
|
||||
fn single_pool(&self) -> bool {
|
||||
self.pools.len() == 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user