Fix registry address usage

This commit is contained in:
Asim 2015-10-26 20:23:57 +00:00
parent 5e598d8ef0
commit d9ae100524

View File

@ -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,