mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-06 13:29:31 -06:00
do a maximum of 5 loads, not 10
This commit is contained in:
parent
6176c22048
commit
cf405352e6
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.
|
// limit to reduce db calls.
|
||||||
nextPg.Limit += 10
|
nextPg.Limit += 10
|
||||||
|
|
||||||
// Perform maximum of 10 load
|
// Perform maximum of 5 load
|
||||||
// attempts fetching statuses.
|
// attempts fetching statuses.
|
||||||
for i := 0; i < 10; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
|
|
||||||
// Load next timeline statuses.
|
// Load next timeline statuses.
|
||||||
statuses, err := loadPage(nextPg)
|
statuses, err := loadPage(nextPg)
|
||||||
|
|
@ -567,9 +567,9 @@ func LoadStatusTimeline(
|
||||||
// limit to reduce db calls.
|
// limit to reduce db calls.
|
||||||
nextPg.Limit += 10
|
nextPg.Limit += 10
|
||||||
|
|
||||||
// Perform maximum of 10 load
|
// Perform maximum of 5 load
|
||||||
// attempts fetching statuses.
|
// attempts fetching statuses.
|
||||||
for i := 0; i < 10; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
|
|
||||||
// Load next timeline statuses.
|
// Load next timeline statuses.
|
||||||
statuses, err := loadPage(nextPg)
|
statuses, err := loadPage(nextPg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue