fix(backup): configuration error

This commit is contained in:
henry.chen
2022-05-11 10:16:38 +08:00
parent 9c58447e3b
commit 38aa704198

View File

@@ -30,7 +30,7 @@ func runTimer(endRun chan error) {
}
func runHTTPServer(endRun chan error) {
if !config.Conf.EiBlogApp.EnableHTTP {
if !config.Conf.BackupApp.EnableHTTP {
return
}
@@ -46,7 +46,7 @@ func runHTTPServer(endRun chan error) {
ping.RegisterRoutes(e)
// start
address := fmt.Sprintf(":%d", config.Conf.EiBlogApp.HTTPPort)
address := fmt.Sprintf(":%d", config.Conf.BackupApp.HTTPPort)
go func() {
endRun <- e.Run(address)
}()