(
&self,
workflow_id: &str,
)
| 186 | } |
| 187 | |
| 188 | async fn load_workflow_checkpoint( |
| 189 | &self, |
| 190 | workflow_id: &str, |
| 191 | ) -> Result<Option<WorkflowCheckpoint>> { |
| 192 | match self |
| 193 | .workflow_checkpoints |
| 194 | .read() |
| 195 | .await |
| 196 | .get(workflow_id) |
| 197 | .cloned() |
| 198 | { |
| 199 | Some(cp) => { |
| 200 | cp.ensure_loadable()?; |
| 201 | Ok(Some(cp)) |
| 202 | } |
| 203 | None => Ok(None), |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | async fn delete_workflow_checkpoint(&self, workflow_id: &str) -> Result<()> { |
| 208 | self.workflow_checkpoints.write().await.remove(workflow_id); |
nothing calls this directly
no test coverage detected