mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-27 08:20:55 +00:00
move internCommands() to func init()
This commit is contained in:
parent
7654dcdf8d
commit
fdbcfe98dd
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue