[#1826] services/object: Parallelize object search

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-10-05 11:09:53 +03:00 committed by fyrchik
parent 90bfe0bad9
commit 2ac42b70ce
4 changed files with 45 additions and 57 deletions

View file

@ -22,6 +22,8 @@ type Service struct {
type Option func(*cfg)
type searchClient interface {
// searchObjects searches objects on the specified node.
// MUST NOT modify execCtx as it can be accessed concurrently.
searchObjects(*execCtx, client.NodeInfo) ([]oid.ID, error)
}