Open the identity store at the given directory, or the default one. Returns `None` rather than failing: every caller here is on a best-effort path where recording must continue without identity data.
(identity_dir: Option<&Path>)
| 159 | /// Returns `None` rather than failing: every caller here is on a |
| 160 | /// best-effort path where recording must continue without identity data. |
| 161 | fn open_identity_store(identity_dir: Option<&Path>) -> Option<atomic_identity::IdentityStore> { |
| 162 | match identity_dir { |
| 163 | Some(dir) => atomic_identity::IdentityStore::open(dir).ok(), |
| 164 | None => atomic_identity::IdentityStore::open_default().ok(), |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | /// The currently-selected delegated agent identity, if one resolves. |
| 169 | /// |
no test coverage detected