Refactor: Dismantle MemoryState into semantic domain sub-structs
This commit is contained in:
1 parent
0e866f2465
commit
a34554b7ff
13 files changed
+186
-158
No files matched your search
@@ -81,7 +81,7 @@ pub async fn start_background_indexer(state: Arc<MemoryState>) {
|
||||
embedding,
|
||||
};
|
||||
|
||||
state.snippets.modify(|snippets| {
|
||||
state.code.snippets.modify(|snippets| {
|
||||
// Prevent duplicates if already indexed
|
||||
if !snippets.iter().any(|s| s.name == snippet.name) {
|
||||
snippets.push(snippet.clone());
|
||||
|
||||
Reference in new issue
Block a user