mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 02:32:24 -06:00
remove local / public caches (is out of scope for this work), share more timeline code
This commit is contained in:
parent
294e1a6bd8
commit
227d6edc3e
10 changed files with 256 additions and 180 deletions
26
internal/cache/timeline.go
vendored
26
internal/cache/timeline.go
vendored
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue