feat(knowledge): index note relationships and maintain moved links
This commit is contained in:
1 parent
d34d1f2183
commit
a923c2dfb9
19 files changed
+545
-79
No files matched your search
+2
-2
@@ -72,9 +72,9 @@ func run(addr string) error {
|
||||
return err
|
||||
}
|
||||
defer idx.Close()
|
||||
go idx.Run(ctx)
|
||||
|
||||
hub := events.NewHub()
|
||||
idx.OnIndexed = func() { hub.Broadcast(events.Event{Type: "indexed"}) }
|
||||
go idx.Run(ctx)
|
||||
if err := watch.Start(ctx, v, hub, idx.Update); err != nil {
|
||||
return fmt.Errorf("启动文件监听失败: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user