(
&self,
sandbox_id: &str,
condition: SandboxCondition,
deleting: bool,
)
| 2926 | } |
| 2927 | |
| 2928 | async fn set_snapshot_condition( |
| 2929 | &self, |
| 2930 | sandbox_id: &str, |
| 2931 | condition: SandboxCondition, |
| 2932 | deleting: bool, |
| 2933 | ) -> Option<Sandbox> { |
| 2934 | let mut registry = self.registry.lock().await; |
| 2935 | let record = registry.get_mut(sandbox_id)?; |
| 2936 | record.snapshot.status = Some(status_with_condition(&record.snapshot, condition, deleting)); |
| 2937 | Some(record.snapshot.clone()) |
| 2938 | } |
| 2939 | |
| 2940 | fn publish_snapshot(&self, sandbox: Sandbox) { |
| 2941 | let _ = self.events.send(WatchSandboxesEvent { |
no test coverage detected