From 6f688b9ea52d6ee6e9a71a248c844686651b9cae Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 16 Nov 2022 11:10:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 == "" {