From e48d396136e64bb07301471cad7059e7f60bd7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zy=E5=BC=A0=E7=A0=94?= Date: Wed, 1 May 2024 17:45:14 +0800 Subject: [PATCH] load config once --- pkg/config/reloader.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/config/reloader.go b/pkg/config/reloader.go index 3b60cac..5994b67 100644 --- a/pkg/config/reloader.go +++ b/pkg/config/reloader.go @@ -38,6 +38,7 @@ func (r *Reloader) WatchPath(path string) error { if err != nil { return err } + _ = LoadConfig(r.configInstance, path) go func() { for event := range r.watcher.Events { for _, op := range r.opList {