Skip to content

Commit

Permalink
fix: increase time for read an item (#5832)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored Jun 4, 2021
1 parent b8c656e commit 861df2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/cdn/cdn_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 861df2d

Please sign in to comment.