cron should clear all servers cache

This commit is contained in:
Dawid Wysokiński 2020-07-28 12:46:38 +02:00 committed by Kichiyaki
parent 5ab238139b
commit efc51d5060
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ func (h *handler) getServers() ([]*models.Server, map[string]string, error) {
return nil, nil, err
}
go h.allServersCache.Set(servers)
go h.allServersCache.Clear()
log.Print("Servers loaded!")
return servers, urls, nil