Skip to content

Commit 270cd15

Browse files
committed
fix(server): box start-recovery futures for clippy large-futures
The durable-snapshot field grows StartSandboxRequest enough that the start-recovery match and the recovery-expiry test exceed the large-futures limit under -D warnings. Box::pin both futures, matching the pattern the recovery path used before the suspend/resume rework. Signed-off-by: Jesse Jaggars <[email protected]>
1 parent 52e2f28 commit 270cd15

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

  • crates/openshell-server/src/compute

‎crates/openshell-server/src/compute/mod.rs‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4426,8 +4426,8 @@ impl ComputeRuntime {
44264426
// Recovery retains the original attempt and deadline. A
44274427
// stalled driver must release this lifecycle gate after
44284428
// expiry so the deadline worker can reclaim its compute.
4429-
match self
4430-
.await_provisioning_operation(
4429+
match Box::pin(
4430+
self.await_provisioning_operation(
44314431
&sandbox,
44324432
self.driver.call_owned(
44334433
openshell_otel::rpc::START_SANDBOX,
@@ -4436,8 +4436,9 @@ impl ComputeRuntime {
44364436
driver.start_sandbox(Request::new(request)).await
44374437
},
44384438
),
4439-
)
4440-
.await
4439+
),
4440+
)
4441+
.await
44414442
{
44424443
Ok((_, settled)) => {
44434444
let updated = self.clear_resume_intent(*settled).await;
@@ -20055,9 +20056,7 @@ endpoint = { kind = "unix", socket_path = "/run/agent-substrate/isolation.sock"
2005520056
runtime.store.put_message(&sandbox).await.unwrap();
2005620057
let recovered_runtime = runtime.clone();
2005720058
let mut recovery = tokio::spawn(async move {
20058-
recovered_runtime
20059-
.recover_persisted_lifecycle_transitions()
20060-
.await
20059+
Box::pin(recovered_runtime.recover_persisted_lifecycle_transitions()).await
2006120060
});
2006220061
tokio::time::timeout(Duration::from_secs(1), driver.start_started.notified())
2006320062
.await

0 commit comments

Comments
 (0)