(&self, id: &str, artifacts: &ArtifactStore)
| 253 | } |
| 254 | |
| 255 | async fn save_artifacts(&self, id: &str, artifacts: &ArtifactStore) -> Result<()> { |
| 256 | let artifact_dir = self.artifact_dir(id); |
| 257 | artifacts.save_to_dir(&artifact_dir).with_context(|| { |
| 258 | format!( |
| 259 | "Failed to save artifacts for session {} to {}", |
| 260 | id, |
| 261 | artifact_dir.display() |
| 262 | ) |
| 263 | }) |
| 264 | } |
| 265 | |
| 266 | async fn load_artifacts(&self, id: &str) -> Result<Option<ArtifactStore>> { |
| 267 | let artifact_dir = self.artifact_dir(id); |