(&self)
| 60 | |
| 61 | impl TraceDecayOpenOptions { |
| 62 | fn resolved_profile_root(&self) -> Result<PathBuf> { |
| 63 | if let Some(profile_root) = &self.profile_root { |
| 64 | return Ok(profile_root.clone()); |
| 65 | } |
| 66 | if let Some(parent) = self |
| 67 | .global_db_path |
| 68 | .as_deref() |
| 69 | .and_then(std::path::Path::parent) |
| 70 | { |
| 71 | return Ok(parent.to_path_buf()); |
| 72 | } |
| 73 | storage::default_profile_root() |
| 74 | } |
| 75 | |
| 76 | async fn open_global_db(&self) -> Option<GlobalDb> { |
| 77 | match self.global_db_path.as_deref() { |
no test coverage detected