Fix registry address usage
This commit is contained in:
parent
5e598d8ef0
commit
d9ae100524
@ -72,10 +72,10 @@ func decodeMetadata(tags []string) map[string]string {
|
|||||||
|
|
||||||
func newConsulRegistry(addrs []string, opts ...Option) Registry {
|
func newConsulRegistry(addrs []string, opts ...Option) Registry {
|
||||||
config := consul.DefaultConfig()
|
config := consul.DefaultConfig()
|
||||||
client, _ := consul.NewClient(config)
|
|
||||||
if len(addrs) > 0 {
|
if len(addrs) > 0 {
|
||||||
config.Address = addrs[0]
|
config.Address = addrs[0]
|
||||||
}
|
}
|
||||||
|
client, _ := consul.NewClient(config)
|
||||||
|
|
||||||
cr := &consulRegistry{
|
cr := &consulRegistry{
|
||||||
Address: config.Address,
|
Address: config.Address,
|
||||||
|
Loading…
Reference in New Issue
Block a user