mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 06:36:15 -06:00
[bugfix] Return useful err on server start failure
This commit is contained in:
parent
829143d263
commit
85d4994b96
5 changed files with 73 additions and 50 deletions
7
internal/cache/cache.go
vendored
7
internal/cache/cache.go
vendored
|
|
@ -136,6 +136,13 @@ func (c *Caches) Start() {
|
|||
})
|
||||
}
|
||||
|
||||
// Inited returns true if the
|
||||
// caches have been initialized.
|
||||
func (c *Caches) Inited() bool {
|
||||
// Use nilness of *ttl.Cache pointers as heuristic.
|
||||
return c.Webfinger != nil && c.StatusesFilterableFields != nil
|
||||
}
|
||||
|
||||
// Stop will stop any caches that require a background
|
||||
// routine, which usually means any kind of TTL caches.
|
||||
func (c *Caches) Stop() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue