forked from TrueCloudLab/frostfs-node
[#1195] Adopt recent changes in NeoFS SDK
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a8d10704d5
commit
e0dce1043a
25 changed files with 885 additions and 424 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
type ContextWithToken struct {
|
||||
context.Context
|
||||
|
||||
SessionToken *session.SessionToken
|
||||
SessionToken *session.Token
|
||||
}
|
||||
|
||||
type ServiceExecutor interface {
|
||||
|
@ -40,7 +40,7 @@ func NewExecutionService(exec ServiceExecutor) Server {
|
|||
func contextWithTokenFromRequest(ctx context.Context, req interface {
|
||||
GetMetaHeader() *session.RequestMetaHeader
|
||||
}) ContextWithToken {
|
||||
var tok *session.SessionToken
|
||||
var tok *session.Token
|
||||
|
||||
for meta := req.GetMetaHeader(); meta != nil; meta = meta.GetOrigin() {
|
||||
tok = meta.GetSessionToken()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue