mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-04-15 13:54:07 +00:00
do a maximum of 5 loads, not 10
This commit is contained in:
parent
bee3963a5c
commit
55e03f0164
1 changed files with 4 additions and 4 deletions
8
internal/cache/timeline/status.go
vendored
8
internal/cache/timeline/status.go
vendored
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue