[#1786] services/control: Remove WithDeletedObjectHandler option

Use storage engine directly instead. It is already provided in the
options.

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-09-14 17:13:40 +03:00 committed by fyrchik
parent ae1dab29bc
commit cda8f9df2e
3 changed files with 6 additions and 25 deletions

View file

@ -49,8 +49,6 @@ type cfg struct {
nodeState NodeState
delObjHandler DeletedObjectHandler
treeService TreeService
s *engine.StorageEngine
@ -111,14 +109,6 @@ func WithNodeState(state NodeState) Option {
}
}
// WithDeletedObjectHandler returns option to function
// which is called on the objects being deleted.
func WithDeletedObjectHandler(h DeletedObjectHandler) Option {
return func(c *cfg) {
c.delObjHandler = h
}
}
// WithLocalStorage returns option to set local storage engine that
// contains information about shards.
func WithLocalStorage(engine *engine.StorageEngine) Option {