Major fixes and improvements

This commit is contained in:
TwinProduction
2021-07-15 22:07:30 -04:00
committed by Chris
parent fed32d3909
commit d3a81a2d57
14 changed files with 378 additions and 158 deletions

View File

@ -39,11 +39,11 @@ var (
server *http.Server
)
func init() {
if err := cache.StartJanitor(); err != nil {
log.Fatal("[controller][init] Failed to start cache janitor:", err.Error())
}
}
//func init() { XXX: Don't think there's any value in using the janitor since the cache max size is this small
// if err := cache.StartJanitor(); err != nil {
// log.Fatal("[controller][init] Failed to start cache janitor:", err.Error())
// }
//}
// Handle creates the router and starts the server
func Handle(securityConfig *security.Config, webConfig *config.WebConfig, enableMetrics bool) {