mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-05 06:05:48 +08:00
refactor: 标签不可移动,资源选择优化等
This commit is contained in:
@@ -53,7 +53,7 @@ func Ip2Region(ip string) string {
|
||||
}
|
||||
|
||||
// 2、用全局的 vIndex 创建带 VectorIndex 缓存的查询对象。
|
||||
searcher, err := xdb.NewWithVectorIndex(ip2RegionDbPath, vectorIndex)
|
||||
searcher, err := xdb.NewWithVectorIndex(xdb.IPv4, ip2RegionDbPath, vectorIndex)
|
||||
if err != nil {
|
||||
logx.Errorf("failed to create searcher with vector index: %s\n", err)
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user