forked from TrueCloudLab/frostfs-node
[#525] morph/container: Do not accept signature in PutEACL function
In previous implementation wrapper over the Container contract's client accepted the signature of the eACL table in addition to itself. After recent changes in API Go lib table carries its signature. Thus, it is redundant to pass the eACL table signature separately. Make `wrapper.PutEACL` method to accept `eacl.Table` only. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
32828d2b90
commit
1deb3f3d01
2 changed files with 8 additions and 4 deletions
|
@ -96,7 +96,9 @@ func (s *morphExecutor) SetExtendedACL(ctx context.Context, body *container.SetE
|
|||
table := eaclSDK.NewTableFromV2(body.GetEACL())
|
||||
sign := pkg.NewSignatureFromV2(body.GetSignature())
|
||||
|
||||
err := wrapper.PutEACL(s.wrapper, table, sign)
|
||||
table.SetSignature(sign)
|
||||
|
||||
err := wrapper.PutEACL(s.wrapper, table)
|
||||
|
||||
return new(container.SetExtendedACLResponseBody), err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue