[#242] service/object: Support ContainerID field in local search

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-10 16:25:10 +03:00
parent 511b5f782a
commit 9fb7190358

View file

@ -20,9 +20,8 @@ type localStream struct {
func (s *localStream) stream(ctx context.Context, ch chan<- []*objectSDK.ID) error {
fs := s.query.ToSearchFilters()
fs.AddObjectContainerIDFilter(objectSDK.MatchStringEqual, s.cid)
addrList, err := engine.Select(s.storage, fs)
addrList, err := engine.Select(s.storage, s.cid, fs)
if err != nil {
return errors.Wrapf(err, "(%T) could not select objects from local storage", s)
}