mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-13 00:26:53 +00:00
refactor(runtime): guard replication stats globals (#4058)
This commit is contained in:
@@ -1407,6 +1407,10 @@ pub fn get_global_replication_pool() -> Option<Arc<DynReplicationPool>> {
|
||||
runtime_sources::replication_pool()
|
||||
}
|
||||
|
||||
pub fn get_global_replication_stats() -> Option<Arc<ReplicationStats>> {
|
||||
runtime_sources::replication_stats()
|
||||
}
|
||||
|
||||
pub async fn schedule_replication<S: ReplicationStorage>(
|
||||
oi: ObjectInfo,
|
||||
o: Arc<S>,
|
||||
|
||||
Reference in New Issue
Block a user