1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-27 00:10:55 +00:00

move internCommands() to func init()

This commit is contained in:
Kane York 2016-01-17 18:40:08 -08:00
parent 7654dcdf8d
commit fdbcfe98dd

View file

@ -114,10 +114,13 @@ func SetupServerAndHandle(config *ConfigFile, serveMux *http.ServeMux) {
janitorsOnce.Do(startJanitors) janitorsOnce.Do(startJanitors)
} }
func init() {
internCommands()
}
// startJanitors starts the 'is_init_func' goroutines // startJanitors starts the 'is_init_func' goroutines
func startJanitors() { func startJanitors() {
loadUniqueUsers() loadUniqueUsers()
internCommands()
go authorizationJanitor() go authorizationJanitor()
go bunchCacheJanitor() go bunchCacheJanitor()