From 4a57d452b507950bca2f396c5daee8473e3e9e29 Mon Sep 17 00:00:00 2001 From: Calvin Neo Date: Thu, 2 Jan 2025 15:49:44 +0800 Subject: [PATCH] fix tests 2 Signed-off-by: Calvin Neo --- proxy_components/proxy_server/src/config.rs | 5 ----- proxy_tests/proxy/shared/store.rs | 1 - 2 files changed, 6 deletions(-) diff --git a/proxy_components/proxy_server/src/config.rs b/proxy_components/proxy_server/src/config.rs index df1c2e1a581..b5bbe710a9a 100644 --- a/proxy_components/proxy_server/src/config.rs +++ b/proxy_components/proxy_server/src/config.rs @@ -267,10 +267,6 @@ pub struct ProxyConfig { #[online_config(skip)] pub enable_io_snoop: bool, - #[doc(hidden)] - #[online_config(skip)] - pub memory_usage_high_water: f64, - #[online_config(submodule)] pub readpool: ReadPoolConfig, @@ -430,7 +426,6 @@ pub fn address_proxy_config(config: &mut TikvConfig, proxy_config: &ProxyConfig) config.storage.reserve_space = proxy_config.storage.reserve_space; config.enable_io_snoop = proxy_config.enable_io_snoop; - config.memory_usage_high_water = proxy_config.memory_usage_high_water; config.server.addr = proxy_config.server.addr.clone(); config.server.advertise_addr = proxy_config.server.advertise_addr.clone(); diff --git a/proxy_tests/proxy/shared/store.rs b/proxy_tests/proxy/shared/store.rs index 40ac0a772e3..f99b0d1e77f 100644 --- a/proxy_tests/proxy/shared/store.rs +++ b/proxy_tests/proxy/shared/store.rs @@ -64,7 +64,6 @@ mod config { ProxyConfig::from_file(path, Some(&mut proxy_unrecognized_keys)).unwrap(); assert_eq!(proxy_config.raft_store.snap_handle_pool_size, 4); assert_eq!(proxy_config.server.engine_addr, "1.2.3.4:5"); - assert_eq!(proxy_config.memory_usage_high_water, 0.65); assert!(proxy_unrecognized_keys.contains(&"nosense".to_string())); let v1 = vec!["a.b", "b"] .iter()