moving
This commit is contained in:
@@ -164,6 +164,7 @@ export async function initialize(): Promise<void> {
|
||||
_mindCache = new MultiMindCache({
|
||||
maxOpen: 20,
|
||||
getMindPath: (workspaceId: string) => _workspaceManager.getMindPath(workspaceId),
|
||||
allowedRoot: path.join(_dataDir, 'workspaces'),
|
||||
});
|
||||
|
||||
_initialized = true;
|
||||
@@ -227,7 +228,7 @@ export function getWorkspaceMind(workspaceId: string): WorkspaceMindHandle | nul
|
||||
|
||||
export function shutdown(): void {
|
||||
_workspaceMindLayerCache.clear();
|
||||
_mindCache.closeAll();
|
||||
_mindCache?.closeAll();
|
||||
try { _personalDb?.close(); } catch { /* already closed */ }
|
||||
_initialized = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user