[#1094] services/object: remove some FIXME comments

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-01-19 14:58:15 +03:00 committed by Alex Vanin
parent 1bdbd6ed22
commit fbb95cff14
2 changed files with 7 additions and 2 deletions

View file

@ -8,6 +8,9 @@ import (
"github.com/nspcc-dev/neofs-sdk-go/token"
)
// maxLocalTTL is maximum TTL for an operation to be considered local.
const maxLocalTTL = 1
type CommonPrm struct {
local bool
@ -103,7 +106,7 @@ func CommonPrmFromV2(req interface {
ttl := meta.GetTTL()
prm := &CommonPrm{
local: ttl <= 1, // FIXME: use constant
local: ttl <= maxLocalTTL,
xhdrs: make([]*sessionsdk.XHeader, 0, len(xHdrs)),
ttl: ttl - 1, // decrease TTL for new requests
}