add basic synchronization using mutex

This commit is contained in:
Arthur Lu
2025-01-20 21:42:13 +00:00
parent 229ab36ede
commit 58cf403d26
5 changed files with 158 additions and 68 deletions

View File

@@ -19,6 +19,7 @@ type Config struct {
Secret string `json:"uuid"`
}
}
ReloadInterval int `json:"reloadInterval"`
}
func GetConfig(configPath string) Config {