remove local / public caches (is out of scope for this work), share more timeline code

This commit is contained in:
kim 2025-04-03 13:51:47 +01:00
commit 227d6edc3e
10 changed files with 256 additions and 180 deletions

View file

@ -29,12 +29,6 @@ type TimelineCaches struct {
// List ...
List timeline.StatusTimelines
// Public ...
Public timeline.StatusTimelines
// Local ...
Local timeline.StatusTimelines
}
func (c *Caches) initHomeTimelines() {
@ -56,23 +50,3 @@ func (c *Caches) initListTimelines() {
c.Timelines.List.Init(cap)
}
func (c *Caches) initPublicTimeline() {
// Global cache so
// allow larger.
cap := 800
log.Infof(nil, "cache size = %d", cap)
c.Timelines.Public.Init(cap)
}
func (c *Caches) initLocalTimeline() {
// Global cache so
// allow larger.
cap := 800
log.Infof(nil, "cache size = %d", cap)
c.Timelines.Local.Init(cap)
}