set DefaultClient
This commit is contained in:
parent
071ab7aede
commit
a03791c581
@ -3,7 +3,7 @@ package mucp
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/micro/go-micro/config/cmd"
|
"github.com/micro/go-micro/client"
|
||||||
"github.com/micro/go-micro/config/source"
|
"github.com/micro/go-micro/config/source"
|
||||||
proto "github.com/micro/go-micro/config/source/mucp/proto"
|
proto "github.com/micro/go-micro/config/source/mucp/proto"
|
||||||
"github.com/micro/go-micro/util/log"
|
"github.com/micro/go-micro/util/log"
|
||||||
@ -11,6 +11,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
DefaultServiceName = "go.micro.config"
|
DefaultServiceName = "go.micro.config"
|
||||||
|
DefaultClient = client.DefaultClient
|
||||||
)
|
)
|
||||||
|
|
||||||
type mucpSource struct {
|
type mucpSource struct {
|
||||||
@ -65,7 +66,7 @@ func NewSource(opts ...source.Option) source.Source {
|
|||||||
s := &mucpSource{
|
s := &mucpSource{
|
||||||
serviceName: addr,
|
serviceName: addr,
|
||||||
opts: options,
|
opts: options,
|
||||||
client: proto.NewSourceService(addr, *cmd.DefaultOptions().Client),
|
client: proto.NewSourceService(addr, DefaultClient),
|
||||||
}
|
}
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
Loading…
Reference in New Issue
Block a user