mirror of
https://github.com/go-micro/go-micro.git
synced 2025-04-17 11:06:19 +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) {
|
func newConfig(opts ...Option) (Config, error) {
|
||||||
var c config
|
var c config
|
||||||
|
|
||||||
c.Init(opts...)
|
err := c.Init(opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
go c.run()
|
go c.run()
|
||||||
|
|
||||||
return &c, nil
|
return &c, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user