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