结构更新
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
package search
|
||||
|
||||
// 程序退出时关闭索引(可选)
|
||||
func CloseIndex() error {
|
||||
if globalIndex != nil {
|
||||
return globalIndex.Close()
|
||||
if GlobalIndex != nil {
|
||||
return GlobalIndex.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user