Browse Source

do a maximum of 5 loads, not 10

pull/3941/head
kim 11 months ago
parent
commit
55e03f0164
  1. 8
      internal/cache/timeline/status.go

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…
Cancel
Save