From 461fcfcf197f97c355575d0d572f89d2151c2d62 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 25 May 2021 18:55:31 +0300 Subject: [PATCH] [#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 --- pkg/innerring/processors/container/process_container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/innerring/processors/container/process_container.go b/pkg/innerring/processors/container/process_container.go index d7b0a24ba..d1756a8e5 100644 --- a/pkg/innerring/processors/container/process_container.go +++ b/pkg/innerring/processors/container/process_container.go @@ -66,7 +66,7 @@ func (cp *Processor) checkPutContainer(e *containerEvent.Put) error { func (cp *Processor) approvePutContainer(e *containerEvent.Put) { // 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 { cp.log.Error("could not approve put container", zap.String("error", err.Error()),