[#1098] object/search: Fix error loss in SignService.Search

Error loss led to incorrect response formation.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-01-21 12:00:08 +03:00 committed by Alex Vanin
parent 291fd2f183
commit 4b5404047c

View file

@ -150,7 +150,7 @@ func (s *SignService) Search(req *object.SearchRequest, stream SearchStream) err
return stream.Send(new(object.SearchResponse))
}
return nil
return err
},
)
}