fix(search): BuildIndex concurrency error (#7035)
This commit is contained in:
@ -136,9 +136,7 @@ func List(ctx context.Context, storage driver.Driver, path string, args model.Li
|
||||
model.WrapObjsName(files)
|
||||
// call hooks
|
||||
go func(reqPath string, files []model.Obj) {
|
||||
for _, hook := range objsUpdateHooks {
|
||||
hook(reqPath, files)
|
||||
}
|
||||
HandleObjsUpdateHook(reqPath, files)
|
||||
}(utils.GetFullPath(storage.GetStorage().MountPath, path), files)
|
||||
|
||||
// sort objs
|
||||
|
Reference in New Issue
Block a user