From 303508328a1ce578c0512067797f742f821e5b10 Mon Sep 17 00:00:00 2001 From: Airat Arifullin Date: Tue, 5 Sep 2023 17:32:03 +0300 Subject: [PATCH] [#121] pool: Refactor PrmSessionCreate usage Signed-off-by: Airat Arifullin --- pool/pool.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pool/pool.go b/pool/pool.go index 6dc8fb9..aebd5d1 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -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) -- 2.45.2