[#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:
parent
7799f8e4cf
commit
24ca8ca5c7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue