[#1318] object: Change default ttl

This is need to reuse object service without passing any API v2 structs.
Also, fix comment.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-04-19 21:01:29 +03:00 committed by LeL
parent 7799f8e4cf
commit 24ca8ca5c7

View file

@ -31,10 +31,10 @@ func (p *CommonPrm) TTL() uint32 {
return p.ttl
}
return 0
return 1
}
// Returns X-Headers for new requests.
// XHeaders returns X-Headers for new requests.
func (p *CommonPrm) XHeaders() []*sessionsdk.XHeader {
if p != nil {
return p.xhdrs