(
&self,
session_id: &str,
turn_number: u32,
now: i64,
)
| 146 | |
| 147 | impl ProvenanceJournalSink for DirectJournalSink { |
| 148 | fn reserve_turn( |
| 149 | &self, |
| 150 | session_id: &str, |
| 151 | turn_number: u32, |
| 152 | now: i64, |
| 153 | ) -> Result<JournalTurnReservation, String> { |
| 154 | let turn = self |
| 155 | .store()? |
| 156 | .reserve_provenance_turn(session_id, turn_number, now) |
| 157 | .map_err(|error| error.to_string())?; |
| 158 | Ok(JournalTurnReservation { |
| 159 | provenance_id: turn.provenance_id.get(), |
| 160 | generation: turn.generation, |
| 161 | }) |
| 162 | } |
| 163 | |
| 164 | fn append( |
| 165 | &self, |
nothing calls this directly
no test coverage detected