[#505] morph/container: Rename PutEACLBinary to PutEACl in wrapper

There is no need to concretize the type of arguments in the method name.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-25 17:36:01 +03:00 committed by Alex Vanin
parent 0282994f3e
commit 62281b91f4
2 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ func (cp *Processor) checkEACLOwnership(binTable []byte, key *keys.PublicKey) er
}
func (cp *Processor) approveSetEACL(e container.SetEACL) {
err := cp.cnrClient.PutEACLBinary(e.Table(), e.PublicKey(), e.Signature())
err := cp.cnrClient.PutEACL(e.Table(), e.PublicKey(), e.Signature())
if err != nil {
cp.log.Error("could not approve set EACL",
zap.String("error", err.Error()),

View file

@ -68,14 +68,14 @@ func PutEACL(w *Wrapper, table *eacl.Table, sig *pkg.Signature) error {
return fmt.Errorf("can't marshal eacl table: %w", err)
}
return w.PutEACLBinary(data, sig.Key(), sig.Sign())
return w.PutEACL(data, sig.Key(), sig.Sign())
}
// PutEACLBinary save binary eACL table with its key and signature
// PutEACL saves binary eACL table with its key and signature
// in NeoFS system through Container contract call.
//
// Returns any error encountered that caused the saving to interrupt.
func (w *Wrapper) PutEACLBinary(table, key, sig []byte) error {
func (w *Wrapper) PutEACL(table, key, sig []byte) error {
if len(sig) == 0 || len(key) == 0 {
return errNilArgument
}