regen with never protoc-gen-go

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-03-22 08:59:52 +03:00
parent 466fc6330f
commit e56722b03e
12 changed files with 121 additions and 204 deletions

View File

@@ -5,6 +5,7 @@ import (
"fmt"
"github.com/imdario/mergo"
pbmicro "github.com/unistack-org/micro-config-service/v3/micro"
pb "github.com/unistack-org/micro-config-service/v3/proto"
"github.com/unistack-org/micro/v3/client"
"github.com/unistack-org/micro/v3/config"
@@ -18,7 +19,7 @@ var (
type serviceConfig struct {
opts config.Options
service string
client pb.ConfigService
client pbmicro.ConfigClient
}
func (c *serviceConfig) Options() config.Options {
@@ -48,7 +49,7 @@ func (c *serviceConfig) Init(opts ...config.Option) error {
return fmt.Errorf("missing Service option")
}
c.client = pb.NewConfigService(c.service, cli)
c.client = pbmicro.NewConfigClient(c.service, cli)
return nil
}