This commit is contained in:
xing 2022-11-16 11:10:11 +08:00
parent f2dcd9f81e
commit 6f688b9ea5

View File

@ -21,6 +21,7 @@ import (
) )
var confPath string var confPath string
var middleWareReloadFn func()
func init() { func init() {
flag.StringVar(&confPath, "c", "config.yaml", "config file") flag.StringVar(&confPath, "c", "config.yaml", "config file")
@ -115,8 +116,6 @@ func signalNotify() {
} }
} }
var middleWareReloadFn func()
func main() { func main() {
c := config.Conf.Load() c := config.Conf.Load()
if c.Port == "" { if c.Port == "" {