mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-07 11:43:16 -06:00
more big changes
This commit is contained in:
parent
b9746a30f3
commit
4e054233da
71 changed files with 640 additions and 405 deletions
|
|
@ -54,7 +54,8 @@ func (t *timeline) Get(ctx context.Context, amount int, maxID string, sinceID st
|
|||
if prepareNext {
|
||||
// already cache the next query to speed up scrolling
|
||||
go func() {
|
||||
if err := t.prepareNextQuery(ctx, amount, nextMaxID, "", ""); err != nil {
|
||||
// use context.Background() because we don't want the query to abort when the request finishes
|
||||
if err := t.prepareNextQuery(context.Background(), amount, nextMaxID, "", ""); err != nil {
|
||||
l.Errorf("error preparing next query: %s", err)
|
||||
}
|
||||
}()
|
||||
|
|
@ -73,7 +74,8 @@ func (t *timeline) Get(ctx context.Context, amount int, maxID string, sinceID st
|
|||
if prepareNext {
|
||||
// already cache the next query to speed up scrolling
|
||||
go func() {
|
||||
if err := t.prepareNextQuery(ctx, amount, nextMaxID, "", ""); err != nil {
|
||||
// use context.Background() because we don't want the query to abort when the request finishes
|
||||
if err := t.prepareNextQuery(context.Background(), amount, nextMaxID, "", ""); err != nil {
|
||||
l.Errorf("error preparing next query: %s", err)
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue