(max_projects: usize, max_file_size: u64)
| 46 | |
| 47 | impl AppState { |
| 48 | pub fn new(max_projects: usize, max_file_size: u64) -> Self { |
| 49 | Self { |
| 50 | inner: Arc::new(AppStateInner { |
| 51 | projects: DashMap::new(), |
| 52 | sessions: DashMap::new(), |
| 53 | max_projects, |
| 54 | max_file_size, |
| 55 | }), |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /// Look up an existing project or index a new one. Evicts LRU if at capacity. |
| 60 | pub fn get_or_create_project(&self, cwd: &Path) -> Result<Arc<Project>, AppError> { |
nothing calls this directly
no outgoing calls
no test coverage detected