结构更新

This commit is contained in:
2025-08-12 17:06:48 +08:00
parent c383af752f
commit eb5a502d67
6 changed files with 21 additions and 20 deletions

View File

@@ -1,9 +1,8 @@
package search
// 程序退出时关闭索引(可选)
func CloseIndex() error {
if globalIndex != nil {
return globalIndex.Close()
if GlobalIndex != nil {
return GlobalIndex.Close()
}
return nil
}