From 50dc179d332af4a3dc0e69e2c4e39bbbccd3fec5 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 22 Nov 2022 19:38:10 +0100 Subject: [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 --- internal/typeutils/internaltoas.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'internal/typeutils/internaltoas.go') diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go index c84dd09f4..27f48f798 100644 --- a/internal/typeutils/internaltoas.go +++ b/internal/typeutils/internaltoas.go @@ -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() -- cgit v1.2.3