[#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:
parent
ae1dab29bc
commit
cda8f9df2e
3 changed files with 6 additions and 25 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue