Skip to content

Commit

Permalink
cfg: exit when reload failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Feb 6, 2022
1 parent 4940bb0 commit 2c52d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ehco/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func watchAndReloadConfig(ctx context.Context, relayM *sync.Map, errCh chan erro
logger.Info("[cfg] Got A HUP Signal! Now Reloading Conf")
newCfg, err := loadConfig()
if err != nil {
logger.Errorf("[cfg] Reloading Conf meet error: %s ", err)
logger.Fatalf("[cfg] Reloading Conf meet error: %s ", err)
}

var newRelayAddrList []string
Expand Down

0 comments on commit 2c52d89

Please sign in to comment.