diff --git a/foyer-storage/src/io/engine/uring.rs b/foyer-storage/src/io/engine/uring.rs index fcd14436..dc6ca6a2 100644 --- a/foyer-storage/src/io/engine/uring.rs +++ b/foyer-storage/src/io/engine/uring.rs @@ -46,11 +46,6 @@ pub struct UringIoEngineConfig { sqpoll_idle: u32, iopoll: bool, weight: f64, - - #[cfg(any(test, feature = "test_utils"))] - write_io_latency: Option>, - #[cfg(any(test, feature = "test_utils"))] - read_io_latency: Option>, } impl Default for UringIoEngineConfig { @@ -71,10 +66,6 @@ impl UringIoEngineConfig { sqpoll_idle: 10, iopoll: false, weight: 1.0, - #[cfg(any(test, feature = "test_utils"))] - write_io_latency: None, - #[cfg(any(test, feature = "test_utils"))] - read_io_latency: None, } } @@ -161,20 +152,6 @@ impl UringIoEngineConfig { self.sqpoll_idle = idle; self } - - /// Set the simulated additional write I/O latency for testing purposes. - #[cfg(any(test, feature = "test_utils"))] - pub fn with_write_io_latency(mut self, latency: std::ops::Range) -> Self { - self.write_io_latency = Some(latency); - self - } - - /// Set the simulated additional read I/O latency for testing purposes. - #[cfg(any(test, feature = "test_utils"))] - pub fn with_read_io_latency(mut self, latency: std::ops::Range) -> Self { - self.read_io_latency = Some(latency); - self - } } impl IoEngineConfig for UringIoEngineConfig {