From 861df2dc05a431b03018c46af3a8c76f148785f1 Mon Sep 17 00:00:00 2001 From: Guiheux Steven Date: Fri, 4 Jun 2021 16:01:52 +0200 Subject: [PATCH] fix: increase time for read an item (#5832) --- engine/cdn/cdn_item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/cdn/cdn_item.go b/engine/cdn/cdn_item.go index d446bf0043..6c19e4b02d 100644 --- a/engine/cdn/cdn_item.go +++ b/engine/cdn/cdn_item.go @@ -229,7 +229,7 @@ func (s *Service) getItemFileValue(ctx context.Context, t sdk.CDNItemType, apiRe if !ignoreBuffer { readerKey := cache.Key(storage.FileBufferKey, s.Units.FileBuffer().ID(), "reader", itemUnit.ID, sdk.UUID()) - if err := s.Cache.SetWithTTL(readerKey, true, 30); err != nil { + if err := s.Cache.SetWithTTL(readerKey, true, 300); err != nil { log.Error(ctx, "unable to set reader on file buffer: %v", err) ignoreBuffer = true }