[#121] Refactor PrmSessionCreate #159

Merged
fyrchik merged 1 commit from aarifullin/frostfs-sdk-go:feature/121-prm_session_create into master 2024-09-04 19:51:15 +00:00

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)