[#429] Refactor tree service

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
Angira Kekteeva 2022-05-12 04:48:17 +03:00 committed by Alex Vanin
parent dace32760a
commit b03ae827fb
3 changed files with 90 additions and 66 deletions

View file

@ -15,9 +15,9 @@ type TreeService interface {
// GetSettingsNode retrieves the settings node from the tree service and form data.BucketSettings.
//
// If node is not found returns ErrNotFound error.
// If node is not found returns ErrNodeNotFound error.
GetSettingsNode(context.Context, *cid.ID, string) (*data.BucketSettings, error)
}
// ErrNotFound is returned from Tree service in case of not found error.
var ErrNotFound = errors.New("not found")
// ErrNodeNotFound is returned from Tree service in case of not found error.
var ErrNodeNotFound = errors.New("not found")