update to micro v3.1.2

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-01-19 03:13:45 +03:00
parent 56744c09e0
commit 0ffcff86f9
3 changed files with 5 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/hashicorp/consul/api"
"github.com/imdario/mergo"
"github.com/unistack-org/micro/v3/config"
rutil "github.com/unistack-org/micro/v3/util/reflect"
)
var (
@@ -96,7 +97,7 @@ func (c *consulConfig) Load(ctx context.Context) error {
}
if err == nil && pair != nil {
src, err := config.Zero(c.opts.Struct)
src, err := rutil.Zero(c.opts.Struct)
if err == nil {
err = c.opts.Codec.Unmarshal(pair.Value, src)
if err == nil {