Skip to content

Commit

Permalink
Wait 5 minutes before reloading the configs, not 5 hours.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonhasacat committed Feb 8, 2024
1 parent ce805e4 commit d309e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/bot/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit d309e6b

Please sign in to comment.