Update the last-active timestamp on a project.
(&self, project_path: &Path)
| 156 | |
| 157 | /// Update the last-active timestamp on a project. |
| 158 | pub fn touch_project(&self, project_path: &Path) { |
| 159 | if let Some(project) = self.inner.projects.get(project_path) { |
| 160 | *project.last_active.lock() = Utc::now(); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | /// Evict the least recently used project. Removes all sessions pointing to it. |
| 165 | fn evict_lru(&self) -> Result<(), AppError> { |