1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

fix missing error (#2189)

Co-authored-by: wangyue <wangyue@actiontech.com>
This commit is contained in:
wangYue 2021-06-30 17:13:05 +08:00 committed by GitHub
parent 93ba8cd0df
commit 70ed9bf154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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