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:
parent
93ba8cd0df
commit
70ed9bf154
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user