mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 05:37:28 -06:00
[feature] Prune timelines once per hour to plug memory leak (#1117)
* export highest/lowest ULIDs as proper const * add stop + start to timeline manager, other small fixes * unexport unused interface funcs + tidy up * add LastGot func * add timeline Prune function * test prune * update lastGot
This commit is contained in:
parent
90bbcf1bcf
commit
50dc179d33
16 changed files with 594 additions and 602 deletions
|
|
@ -34,13 +34,6 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
)
|
||||
|
||||
// const (
|
||||
// // highestID is the highest possible ULID
|
||||
// highestID = "ZZZZZZZZZZZZZZZZZZZZZZZZZZ"
|
||||
// // lowestID is the lowest possible ULID
|
||||
// lowestID = "00000000000000000000000000"
|
||||
// )
|
||||
|
||||
// Converts a gts model account into an Activity Streams person type.
|
||||
func (c *converter) AccountToAS(ctx context.Context, a *gtsmodel.Account) (vocab.ActivityStreamsPerson, error) {
|
||||
person := streams.NewActivityStreamsPerson()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue