2020-09-22 06:51:47 +00:00
|
|
|
package searchsvc
|
|
|
|
|
|
|
|
import (
|
2020-12-10 12:26:40 +00:00
|
|
|
"go.uber.org/zap"
|
2020-09-22 06:51:47 +00:00
|
|
|
)
|
|
|
|
|
2020-12-10 12:26:40 +00:00
|
|
|
func (exec *execCtx) executeLocal() {
|
|
|
|
ids, err := exec.svc.localStorage.search(exec)
|
2020-09-22 06:51:47 +00:00
|
|
|
|
2020-10-29 17:16:49 +00:00
|
|
|
if err != nil {
|
2020-12-10 12:26:40 +00:00
|
|
|
exec.status = statusUndefined
|
|
|
|
exec.err = err
|
2020-09-22 06:51:47 +00:00
|
|
|
|
2020-12-10 12:26:40 +00:00
|
|
|
exec.log.Debug("local operation failed",
|
|
|
|
zap.String("error", err.Error()),
|
|
|
|
)
|
2020-09-22 06:51:47 +00:00
|
|
|
|
2020-12-10 12:26:40 +00:00
|
|
|
return
|
2020-09-22 06:51:47 +00:00
|
|
|
}
|
|
|
|
|
2020-12-10 12:26:40 +00:00
|
|
|
exec.writeIDList(ids)
|
2020-09-22 06:51:47 +00:00
|
|
|
}
|