From 0e73a8485776253f9b0e525e379cd83b5634d19f Mon Sep 17 00:00:00 2001 From: Asim Date: Mon, 19 Jan 2015 19:37:28 +0000 Subject: [PATCH] github.com/armon/consul-api was deprecated, use official api --- registry/consul_registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/consul_registry.go b/registry/consul_registry.go index e9bdbf3a..ae0d6e96 100644 --- a/registry/consul_registry.go +++ b/registry/consul_registry.go @@ -3,7 +3,7 @@ package registry import ( "errors" - consul "github.com/armon/consul-api" + consul "github.com/hashicorp/consul/api" ) type ConsulRegistry struct { @@ -100,7 +100,7 @@ func (c *ConsulRegistry) NewNode(id, address string, port int) Node { } func NewConsulRegistry() Registry { - client, _ := consul.NewClient(&consul.Config{}) + client, _ := consul.NewClient(consul.DefaultConfig()) return &ConsulRegistry{ Client: client,