mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-09 06:39:25 +00:00
scanner status command(1)
Signed-off-by: mujunxiang <1948535941@qq.com>
This commit is contained in:
@@ -8,5 +8,10 @@ lazy_static! {
|
||||
pub static ref GLOBAL_Local_Node_Name: RwLock<String> = RwLock::new("".to_string());
|
||||
pub static ref GLOBAL_Rustfs_Host: RwLock<String> = RwLock::new("".to_string());
|
||||
pub static ref GLOBAL_Rustfs_Port: RwLock<String> = RwLock::new("9000".to_string());
|
||||
pub static ref GLOBAL_Rustfs_Addr: RwLock<String> = RwLock::new("".to_string());
|
||||
pub static ref GLOBAL_Conn_Map: RwLock<HashMap<String, Channel>> = RwLock::new(HashMap::new());
|
||||
}
|
||||
|
||||
pub async fn set_global_addr(addr: &str) {
|
||||
*GLOBAL_Rustfs_Addr.write().await = addr.to_string();
|
||||
}
|
||||
|
||||
@@ -735,8 +735,8 @@ pub struct GetMemInfoResponse {
|
||||
}
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct GetMetricsRequest {
|
||||
#[prost(uint64, tag = "1")]
|
||||
pub metric_type: u64,
|
||||
#[prost(bytes = "vec", tag = "1")]
|
||||
pub metric_type: ::prost::alloc::vec::Vec<u8>,
|
||||
#[prost(bytes = "vec", tag = "2")]
|
||||
pub opts: ::prost::alloc::vec::Vec<u8>,
|
||||
}
|
||||
|
||||
@@ -504,7 +504,7 @@ message GetMemInfoResponse {
|
||||
}
|
||||
|
||||
message GetMetricsRequest {
|
||||
uint64 metric_type = 1;
|
||||
bytes metric_type = 1;
|
||||
bytes opts = 2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user