From d9ae1005240e50ecba3b30e31eac3cc775490b26 Mon Sep 17 00:00:00 2001 From: Asim Date: Mon, 26 Oct 2015 20:23:57 +0000 Subject: [PATCH] Fix registry address usage --- registry/consul_registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/consul_registry.go b/registry/consul_registry.go index edc1d137..31281137 100644 --- a/registry/consul_registry.go +++ b/registry/consul_registry.go @@ -72,10 +72,10 @@ func decodeMetadata(tags []string) map[string]string { func newConsulRegistry(addrs []string, opts ...Option) Registry { config := consul.DefaultConfig() - client, _ := consul.NewClient(config) if len(addrs) > 0 { config.Address = addrs[0] } + client, _ := consul.NewClient(config) cr := &consulRegistry{ Address: config.Address,