mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix(backup): configuration error
This commit is contained in:
@@ -30,7 +30,7 @@ func runTimer(endRun chan error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func runHTTPServer(endRun chan error) {
|
func runHTTPServer(endRun chan error) {
|
||||||
if !config.Conf.EiBlogApp.EnableHTTP {
|
if !config.Conf.BackupApp.EnableHTTP {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ func runHTTPServer(endRun chan error) {
|
|||||||
ping.RegisterRoutes(e)
|
ping.RegisterRoutes(e)
|
||||||
|
|
||||||
// start
|
// start
|
||||||
address := fmt.Sprintf(":%d", config.Conf.EiBlogApp.HTTPPort)
|
address := fmt.Sprintf(":%d", config.Conf.BackupApp.HTTPPort)
|
||||||
go func() {
|
go func() {
|
||||||
endRun <- e.Run(address)
|
endRun <- e.Run(address)
|
||||||
}()
|
}()
|
||||||
|
|||||||
Reference in New Issue
Block a user