Skip to content

Commit 3825444

Browse files
Copilotdanbugs
andauthored
Make interrupt retry delay methods Linux-only (#647)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: danbugs <danilochiarlone@gmail.com>
1 parent 1a280b6 commit 3825444

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/hyperlight_host/src/sandbox/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,13 @@ impl SandboxConfiguration {
175175
}
176176

177177
/// Sets the interrupt retry delay
178+
#[cfg(target_os = "linux")]
178179
pub fn set_interrupt_retry_delay(&mut self, delay: Duration) {
179180
self.interrupt_retry_delay = delay;
180181
}
181182

182183
/// Get the delay between retries for interrupts
184+
#[cfg(target_os = "linux")]
183185
pub fn get_interrupt_retry_delay(&self) -> Duration {
184186
self.interrupt_retry_delay
185187
}

0 commit comments

Comments
 (0)