forked from TrueCloudLab/frostfs-node
[#505] morph/container: Change put container API
Make `Put` method of the wrapper over Container contract's client to accept three binary parameters: container, key and signature. Create `Put` function similar to the previous `Put` variation, but accepting `Signature` structure instead of binary key and signature. Use this function in Container service server in the place where `Put` method was used. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
9259ae640e
commit
565ad51b42
2 changed files with 34 additions and 16 deletions
|
@ -32,7 +32,7 @@ func (s *morphExecutor) Put(ctx context.Context, body *container.PutRequestBody)
|
|||
|
||||
sig := body.GetSignature()
|
||||
|
||||
cid, err := s.wrapper.Put(cnr, sig.GetKey(), sig.GetSign())
|
||||
cid, err := wrapper.Put(s.wrapper, cnr, pkg.NewSignatureFromV2(sig))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue