mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-07-10 22:33:48 +02:00
fix: 修复 KnowledgeHandler 方法调用错误
- 将 app.go 中的 RebuildIndex 调用改为 StartIndex - 该方法在最近提交中已重命名,但调用点未同步更新 - 修复编译错误: app.knowledgeHandler.RebuildIndex undefined
This commit is contained in:
+1
-1
@@ -1071,7 +1071,7 @@ func setupRoutes(
|
||||
})
|
||||
return
|
||||
}
|
||||
app.knowledgeHandler.RebuildIndex(c)
|
||||
app.knowledgeHandler.StartIndex(c)
|
||||
})
|
||||
knowledgeRoutes.POST("/scan", func(c *gin.Context) {
|
||||
if app.knowledgeHandler == nil {
|
||||
|
||||
Reference in New Issue
Block a user