mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 07:33:32 -06:00
start adding preloading support
This commit is contained in:
parent
6210ea33ee
commit
b3c9bfde18
7 changed files with 255 additions and 79 deletions
|
|
@ -351,6 +351,11 @@ var Start action.GTSAction = func(ctx context.Context) error {
|
|||
intFilter,
|
||||
)
|
||||
|
||||
// Preload our local user's streaming timeline caches.
|
||||
if err := process.Timeline().Preload(ctx); err != nil {
|
||||
return fmt.Errorf("error preloading timelines: %w", err)
|
||||
}
|
||||
|
||||
// Schedule background cleaning tasks.
|
||||
if err := cleaner.ScheduleJobs(); err != nil {
|
||||
return fmt.Errorf("error scheduling cleaner jobs: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue