[#121] pool: Refactor PrmSessionCreate usage
Tests and linters / Lint (pull_request) Successful in 1m2s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 1m8s Details
DCO / DCO (pull_request) Successful in 3m55s Details
Tests and linters / Tests (1.19) (pull_request) Successful in 5m3s Details

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
pull/159/head
Airat Arifullin 2023-09-05 17:32:03 +03:00
parent 55699d1480
commit 303508328a
1 changed files with 4 additions and 3 deletions

View File

@ -983,9 +983,10 @@ func (c *clientWrapper) sessionCreate(ctx context.Context, prm prmCreateSession)
return resCreateSession{}, err
}
var cliPrm sdkClient.PrmSessionCreate
cliPrm.SetExp(prm.exp)
cliPrm.UseKey(prm.key)
cliPrm := sdkClient.PrmSessionCreate{
Expiration: prm.exp,
Key: &prm.key,
}
start := time.Now()
res, err := cl.SessionCreate(ctx, cliPrm)