forked from TrueCloudLab/frostfs-sdk-go
[#121] pool: Refactor PrmSessionCreate usage
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
55699d1480
commit
303508328a
1 changed files with 4 additions and 3 deletions
|
@ -983,9 +983,10 @@ func (c *clientWrapper) sessionCreate(ctx context.Context, prm prmCreateSession)
|
||||||
return resCreateSession{}, err
|
return resCreateSession{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
var cliPrm sdkClient.PrmSessionCreate
|
cliPrm := sdkClient.PrmSessionCreate{
|
||||||
cliPrm.SetExp(prm.exp)
|
Expiration: prm.exp,
|
||||||
cliPrm.UseKey(prm.key)
|
Key: &prm.key,
|
||||||
|
}
|
||||||
|
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
res, err := cl.SessionCreate(ctx, cliPrm)
|
res, err := cl.SessionCreate(ctx, cliPrm)
|
||||||
|
|
Loading…
Reference in a new issue