update to micro v3.1.2
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
3
env.go
3
env.go
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/imdario/mergo"
|
||||
"github.com/unistack-org/micro/v3/config"
|
||||
rutil "github.com/unistack-org/micro/v3/util/reflect"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -37,7 +38,7 @@ func (c *envConfig) Load(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
src, err := config.Zero(c.opts.Struct)
|
||||
src, err := rutil.Zero(c.opts.Struct)
|
||||
if err == nil {
|
||||
err = c.fillValues(ctx, reflect.ValueOf(src))
|
||||
}
|
||||
|
Reference in New Issue
Block a user