From 24ca8ca5c7c13639d5970793d9d7da05bbe82d52 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 19 Apr 2022 21:01:29 +0300 Subject: [PATCH] [#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 --- pkg/services/object/util/prm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/object/util/prm.go b/pkg/services/object/util/prm.go index 4ad96d9a..9c93c6fb 100644 --- a/pkg/services/object/util/prm.go +++ b/pkg/services/object/util/prm.go @@ -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