[#230] engine: Rename WithAddress
to WithAddresses
for delete operations
Delete works with multiple addresses at once so it is convenient to show it in parameter setter function. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
7c97bd1360
commit
a488d202e1
4 changed files with 8 additions and 8 deletions
|
@ -185,7 +185,7 @@ type localObjectInhumer struct {
|
|||
|
||||
func (r *localObjectRemover) Delete(addr ...*objectSDK.Address) error {
|
||||
_, err := r.storage.Delete(new(engine.DeletePrm).
|
||||
WithAddress(addr...),
|
||||
WithAddresses(addr...),
|
||||
)
|
||||
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue