append config watchers when watch source (#1320)

Co-authored-by: sukkids <ehekirahoshi@gmail.com>
pull/1323/head
byteneco 3 years ago committed by GitHub
parent 6ae2e8712d
commit 39a36b49e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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 {

Loading…
Cancel
Save