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

Method new

server/src/server/state.rs:48–57  ·  view source on GitHub ↗
(max_projects: usize, max_file_size: u64)

Source from the content-addressed store, hash-verified

46
47impl 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> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected