Skip to content

Commit

Permalink
fix config reloader
Browse files Browse the repository at this point in the history
  • Loading branch information
mazay committed Oct 16, 2024
1 parent c467508 commit 5a84a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ func Start() {
return
case force := <-reloaderChan:
oldConfig := &config
_empty, config := getConfig()
if !_empty && reflect.DeepEqual(config, oldConfig) && !force {
_empty, newConfig := getConfig()
if !_empty && reflect.DeepEqual(newConfig, oldConfig) && !force {
logger.Infoln("no config changes detected, reload cancelled")
} else {
status = "RELOADING"
Expand Down

0 comments on commit 5a84a97

Please sign in to comment.