From cf405352e6e151aef4a806e9bbc9e556cd182fba Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 7 Apr 2025 16:02:53 +0100 Subject: [PATCH] do a maximum of 5 loads, not 10 --- internal/cache/timeline/status.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cache/timeline/status.go b/internal/cache/timeline/status.go index bcd354fd2..dc4b9bea4 100644 --- a/internal/cache/timeline/status.go +++ b/internal/cache/timeline/status.go @@ -429,9 +429,9 @@ func (t *StatusTimeline) Load( // limit to reduce db calls. nextPg.Limit += 10 - // Perform maximum of 10 load + // Perform maximum of 5 load // attempts fetching statuses. - for i := 0; i < 10; i++ { + for i := 0; i < 5; i++ { // Load next timeline statuses. statuses, err := loadPage(nextPg) @@ -567,9 +567,9 @@ func LoadStatusTimeline( // limit to reduce db calls. nextPg.Limit += 10 - // Perform maximum of 10 load + // Perform maximum of 5 load // attempts fetching statuses. - for i := 0; i < 10; i++ { + for i := 0; i < 5; i++ { // Load next timeline statuses. statuses, err := loadPage(nextPg)