Update the api in store package, github.com/armon/consul-api is deprecated

This commit is contained in:
Asim 2015-01-19 20:05:00 +00:00
parent 0e73a84857
commit 4a4bdcb83b

View File

@ -3,7 +3,7 @@ package store
import (
"errors"
consul "github.com/armon/consul-api"
consul "github.com/hashicorp/consul/api"
)
type ConsulStore struct {
@ -47,7 +47,7 @@ func (c *ConsulStore) NewItem(key string, value []byte) Item {
}
func NewConsulStore() Store {
client, _ := consul.NewClient(&consul.Config{})
client, _ := consul.NewClient(consul.DefaultConfig())
return &ConsulStore{
Client: client,