(
&self,
sandbox_id: &str,
sandbox_name: &str,
)
| 1098 | } |
| 1099 | |
| 1100 | async fn remove_pending_sandbox( |
| 1101 | &self, |
| 1102 | sandbox_id: &str, |
| 1103 | sandbox_name: &str, |
| 1104 | ) -> Option<PendingSandboxRecord> { |
| 1105 | let mut pending = self.pending.lock().await; |
| 1106 | let id = pending.iter().find_map(|(id, record)| { |
| 1107 | pending_sandbox_matches(&record.sandbox, sandbox_id, sandbox_name).then(|| id.clone()) |
| 1108 | })?; |
| 1109 | pending.remove(&id) |
| 1110 | } |
| 1111 | |
| 1112 | async fn fail_pending_sandbox( |
| 1113 | &self, |
no test coverage detected