MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / touch_project

Method touch_project

server/src/server/state.rs:158–162  ·  view source on GitHub ↗

Update the last-active timestamp on a project.

(&self, project_path: &Path)

Source from the content-addressed store, hash-verified

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> {

Callers 1

require_projectFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected