The journal sink for lifecycle transitions: the daemon's RPC sink (D4 start-or-retry — the daemon is the only repository journal writer).
(dot_dir: &Path)
| 995 | /// The journal sink for lifecycle transitions: the daemon's RPC sink |
| 996 | /// (D4 start-or-retry — the daemon is the only repository journal writer). |
| 997 | fn journal_sink(dot_dir: &Path) -> CliResult<Arc<dyn ProvenanceJournalSink>> { |
| 998 | let root = dot_dir.parent().ok_or_else(|| { |
| 999 | CliError::Internal(anyhow!( |
| 1000 | "canonical .atomic directory has no repository parent" |
| 1001 | )) |
| 1002 | })?; |
| 1003 | Ok(super::provenance_rpc::sink_for(root)) |
| 1004 | } |
| 1005 | |
| 1006 | fn map_stop_cause(cause: JournalStopCauseWire) -> JournalStopCause { |
| 1007 | match cause { |
no test coverage detected