Update remaining logic using viper

This commit is contained in:
Dane Everitt
2021-01-14 20:19:28 -08:00
parent 80faea3286
commit 05c04c4350
5 changed files with 46 additions and 43 deletions

View File

@@ -340,8 +340,8 @@ func Get() *Configuration {
// the global configuration.
func Update(callback func(c *Configuration)) {
mu.Lock()
defer mu.Unlock()
callback(_config)
mu.Unlock()
}
// GetJwtAlgorithm returns the in-memory JWT algorithm.