update to micro v3.1.2

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

View File

@@ -8,6 +8,7 @@ import (
"github.com/hashicorp/vault/api"
"github.com/imdario/mergo"
"github.com/unistack-org/micro/v3/config"
rutil "github.com/unistack-org/micro/v3/util/reflect"
)
var (
@@ -108,7 +109,7 @@ func (c *vaultConfig) Load(ctx context.Context) error {
var data []byte
data, err = json.Marshal(pair.Data["data"])
if err == nil {
src, err := config.Zero(c.opts.Struct)
src, err := rutil.Zero(c.opts.Struct)
if err == nil {
err = c.opts.Codec.Unmarshal(data, src)
if err == nil {