From d309e6bb7e467d83dba04eb02960ad98ff0d69f4 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 7 Feb 2024 20:22:15 -0800 Subject: [PATCH] Wait 5 minutes before reloading the configs, not 5 hours. --- internal/bot/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bot/server.go b/internal/bot/server.go index 2a6c65e..719c034 100644 --- a/internal/bot/server.go +++ b/internal/bot/server.go @@ -87,9 +87,9 @@ var configs = LoadAllServerConfigOrPanic(config.CONFIG_PATH) func IntervalReloadConfigs() { for { + time.Sleep(5 * time.Minute) log.Print("Reloading server configs") configs = LoadAllServerConfigOrPanic(config.CONFIG_PATH) - time.Sleep(5 * time.Hour) } }