[#1418] engine: Do not use pointers as parameters

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-05-23 16:12:32 +03:00 committed by fyrchik
parent 6e752f36dc
commit babd382ba5
20 changed files with 134 additions and 119 deletions

View file

@ -34,7 +34,8 @@ func initControlService(c *cfg) {
controlSvc.WithNetMapSource(c.netMapSource),
controlSvc.WithNodeState(c),
controlSvc.WithDeletedObjectHandler(func(addrList []oid.Address) error {
prm := new(engine.DeletePrm).WithAddresses(addrList...)
var prm engine.DeletePrm
prm.WithAddresses(addrList...)
_, err := c.cfgObject.cfgLocalStorage.localStorage.Delete(prm)