frostfs-node/pkg/services/object/search/local.go
Leonard Lyubich 611a29f682 [#241] object/search: Refactor service processing
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-12-11 17:19:37 +03:00

22 lines
327 B
Go

package searchsvc
import (
"go.uber.org/zap"
)
func (exec *execCtx) executeLocal() {
ids, err := exec.svc.localStorage.search(exec)
if err != nil {
exec.status = statusUndefined
exec.err = err
exec.log.Debug("local operation failed",
zap.String("error", err.Error()),
)
return
}
exec.writeIDList(ids)
}