mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 21:46:50 +00:00
notification_sys base
This commit is contained in:
@@ -39,7 +39,7 @@ lazy_static! {
|
||||
|
||||
pub fn global_rustfs_port() -> u16 {
|
||||
if let Some(p) = GLOBAL_RUSTFS_PORT.get() {
|
||||
p.clone()
|
||||
*p
|
||||
} else {
|
||||
DEFAULT_PORT
|
||||
}
|
||||
@@ -74,7 +74,7 @@ pub fn get_global_endpoints() -> EndpointServerPools {
|
||||
}
|
||||
|
||||
pub fn new_object_layer_fn() -> Option<Arc<ECStore>> {
|
||||
GLOBAL_OBJECT_API.get().map(|ec| ec.clone())
|
||||
GLOBAL_OBJECT_API.get().cloned()
|
||||
}
|
||||
|
||||
pub async fn set_object_layer(o: Arc<ECStore>) {
|
||||
|
||||
Reference in New Issue
Block a user