diff --git a/main.go b/main.go index a4ad683..4fb7b77 100644 --- a/main.go +++ b/main.go @@ -21,6 +21,7 @@ import ( ) var confPath string +var middleWareReloadFn func() func init() { flag.StringVar(&confPath, "c", "config.yaml", "config file") @@ -115,8 +116,6 @@ func signalNotify() { } } -var middleWareReloadFn func() - func main() { c := config.Conf.Load() if c.Port == "" {