(
store: &RedbChangeStore,
session_id: &str,
turn_number: u32,
)
| 348 | } |
| 349 | |
| 350 | fn lifecycle_lookup( |
| 351 | store: &RedbChangeStore, |
| 352 | session_id: &str, |
| 353 | turn_number: u32, |
| 354 | ) -> Result<Option<StoredProvenanceTurn>, JournalError> { |
| 355 | store |
| 356 | .get_provenance_turn_for(session_id, turn_number) |
| 357 | .map_err(|error| JournalError::store(ErrorCode::ProvenanceLifecycle, error)) |
| 358 | } |
| 359 | |
| 360 | /// Stop a running turn. Like the legacy owner, the looked-up turn's own |
| 361 | /// current generation performs the transition — a lookup never grants a |
no test coverage detected