Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions foyer-storage/src/io/engine/uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ pub struct UringIoEngineConfig {
sqpoll_idle: u32,
iopoll: bool,
weight: f64,

#[cfg(any(test, feature = "test_utils"))]
write_io_latency: Option<std::ops::Range<std::time::Duration>>,
#[cfg(any(test, feature = "test_utils"))]
read_io_latency: Option<std::ops::Range<std::time::Duration>>,
}

impl Default for UringIoEngineConfig {
Expand All @@ -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,
}
}

Expand Down Expand Up @@ -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<std::time::Duration>) -> 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<std::time::Duration>) -> Self {
self.read_io_latency = Some(latency);
self
}
}

impl IoEngineConfig for UringIoEngineConfig {
Expand Down
Loading