Skip to content

Commit b1db557

Browse files
committed
style(server): silence unused-variable lint on first shutdown_tx
`crates/openshell-server/src/lib.rs` declares `(shutdown_tx, shutdown_rx)` twice in `run_server` — the first pair (introduced by upstream #1577 reconciler-lease work) only consumes `shutdown_rx`, leaving the first `shutdown_tx` unused. Clippy's `-D warnings` flags it on workspace lint. Rebasing this Bedrock-scoped PR onto current upstream/main exposes the regression because we re-touch the file and the lint re-runs. Prefix the unused half with an underscore so the workspace lint is clean. Behaviour is unchanged — only the second shutdown_tx (line ~425) ever sends a shutdown signal today. This is a drive-by upstream fix unrelated to the Bedrock provider work; keeping it separate so it can be cherry-picked or reverted independently of the Bedrock commits. Signed-off-by: st-gr <[email protected]>
1 parent b3e0b87 commit b1db557

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/openshell-server/src

‎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)