forked from TrueCloudLab/frostfs-node
[#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:
parent
0282994f3e
commit
62281b91f4
2 changed files with 4 additions and 4 deletions
|
@ -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()),
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue