forked from TrueCloudLab/frostfs-node
[#525] ir/container: Write session token on container approval
Approved container should be stored in sidechain along with related session token. Forward session token from `Put` event to `Wrapper.Put` method. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
0f91b78df1
commit
461fcfcf19
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ func (cp *Processor) checkPutContainer(e *containerEvent.Put) error {
|
||||||
|
|
||||||
func (cp *Processor) approvePutContainer(e *containerEvent.Put) {
|
func (cp *Processor) approvePutContainer(e *containerEvent.Put) {
|
||||||
// FIXME: here we should bind key to owner if needed
|
// FIXME: here we should bind key to owner if needed
|
||||||
err := cp.cnrClient.Put(e.Container(), e.PublicKey(), e.Signature(), nil)
|
err := cp.cnrClient.Put(e.Container(), e.PublicKey(), e.Signature(), e.SessionToken())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
cp.log.Error("could not approve put container",
|
cp.log.Error("could not approve put container",
|
||||||
zap.String("error", err.Error()),
|
zap.String("error", err.Error()),
|
||||||
|
|
Loading…
Reference in a new issue