config: remove default config (#1882)

Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
ben-toogood
2020-07-28 13:54:58 +01:00
committed by GitHub
parent c6163bb22f
commit 9813f98c8b
2 changed files with 4 additions and 50 deletions

View File

@@ -33,9 +33,11 @@ type watcher struct {
func newConfig(opts ...Option) (Config, error) {
var c config
c.Init(opts...)
go c.run()
if err := c.Init(opts...); err != nil {
return nil, err
}
go c.run()
return &c, nil
}