Skip to content

Commit 8e831f3

Browse files
authored
fix(ci): fix linting issues (#1985)
1 parent 4ee27d9 commit 8e831f3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

crates/openshell-sandbox/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
88
mod activity_aggregator;
99
mod denial_aggregator;
10+
#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
1011
mod google_cloud_metadata;
1112
mod mechanistic_mapper;
13+
#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
1214
mod metadata_server;
1315

1416
use miette::Result;
@@ -65,6 +67,7 @@ use openshell_supervisor_network::opa::OpaEngine;
6567
pub use openshell_supervisor_process::process::{ProcessHandle, ProcessStatus};
6668
use openshell_supervisor_process::skills;
6769
use tokio::sync::mpsc::UnboundedSender;
70+
#[cfg(target_os = "linux")]
6871
use tokio::time::timeout;
6972

7073
/// Run a command in the sandbox.

crates/openshell-server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ pub async fn run_server(
344344

345345
let state = Arc::new(state);
346346

347-
let (_shutdown_tx, shutdown_rx) = watch::channel(false);
347+
let (shutdown_tx, shutdown_rx) = watch::channel(false);
348348

349349
// Resume sandboxes that were stopped during the previous gateway
350350
// shutdown so the running compute state matches the persisted store.

0 commit comments

Comments
 (0)