forked from TrueCloudLab/frostfs-s3-gw
[#348] Wrap errors from buildSessionTokens func
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
ee6c582ec8
commit
aa4c9d19f6
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ func createTokens(options *IssueSecretOptions, lifetime lifetimeOptions, cid *ci
|
||||||
oid := owner.NewIDFromPublicKey(&options.NeoFSKey.PrivateKey.PublicKey)
|
oid := owner.NewIDFromPublicKey(&options.NeoFSKey.PrivateKey.PublicKey)
|
||||||
sessionTokens, err := buildSessionTokens(options.NeoFSKey, oid, lifetime, sessionRules, options.GatesPublicKeys)
|
sessionTokens, err := buildSessionTokens(options.NeoFSKey, oid, lifetime, sessionRules, options.GatesPublicKeys)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, fmt.Errorf("failed to biuild session token: %w", err)
|
||||||
}
|
}
|
||||||
for i, sessionTkns := range sessionTokens {
|
for i, sessionTkns := range sessionTokens {
|
||||||
gates[i].SessionTokens = sessionTkns
|
gates[i].SessionTokens = sessionTkns
|
||||||
|
|
Loading…
Reference in a new issue