From 357d1f403e4f0c9d85a1564de75ca97e40cf3bb6 Mon Sep 17 00:00:00 2001 From: sukkids Date: Thu, 12 Aug 2021 12:19:33 +0900 Subject: [PATCH] append config watchers when watch source --- config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.go b/config/config.go index 9c1fccb03b8..b7e0f0a17b9 100644 --- a/config/config.go +++ b/config/config.go @@ -107,6 +107,7 @@ func (c *config) Load() error { c.log.Errorf("failed to watch config source: %v", err) return err } + c.watchers = append(c.watchers, w) go c.watch(w) } if err := c.reader.Resolve(); err != nil {