From 62281b91f476d0b9b89fef329241399da861a6d2 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 25 May 2021 17:36:01 +0300 Subject: [PATCH] [#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 --- pkg/innerring/processors/container/process_eacl.go | 2 +- pkg/morph/client/container/wrapper/eacl.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/innerring/processors/container/process_eacl.go b/pkg/innerring/processors/container/process_eacl.go index 590a4e0d6..4f113167d 100644 --- a/pkg/innerring/processors/container/process_eacl.go +++ b/pkg/innerring/processors/container/process_eacl.go @@ -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()), diff --git a/pkg/morph/client/container/wrapper/eacl.go b/pkg/morph/client/container/wrapper/eacl.go index 36f9b5887..ba98b8e4a 100644 --- a/pkg/morph/client/container/wrapper/eacl.go +++ b/pkg/morph/client/container/wrapper/eacl.go @@ -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 }