diff --git a/pool/pool.go b/pool/pool.go index 6dc8fb99..aebd5d14 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)