update to micro v3.1.2

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

View File

@@ -7,6 +7,7 @@ import (
"github.com/imdario/mergo"
pb "github.com/unistack-org/micro-config-service/v3/proto"
"github.com/unistack-org/micro/v3/config"
rutil "github.com/unistack-org/micro/v3/util/reflect"
)
var (
@@ -53,7 +54,7 @@ func (c *serviceConfig) Load(ctx context.Context) error {
return fmt.Errorf("failed to load error config: %w", err)
}
src, err := config.Zero(c.opts.Struct)
src, err := rutil.Zero(c.opts.Struct)
if err == nil {
err = c.opts.Codec.Unmarshal(rsp.Config, src)
if err == nil {