Update the api in store package, github.com/armon/consul-api is deprecated
This commit is contained in:
parent
0e73a84857
commit
4a4bdcb83b
@ -3,7 +3,7 @@ package store
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
consul "github.com/armon/consul-api"
|
consul "github.com/hashicorp/consul/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConsulStore struct {
|
type ConsulStore struct {
|
||||||
@ -47,7 +47,7 @@ func (c *ConsulStore) NewItem(key string, value []byte) Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewConsulStore() Store {
|
func NewConsulStore() Store {
|
||||||
client, _ := consul.NewClient(&consul.Config{})
|
client, _ := consul.NewClient(consul.DefaultConfig())
|
||||||
|
|
||||||
return &ConsulStore{
|
return &ConsulStore{
|
||||||
Client: client,
|
Client: client,
|
||||||
|
Loading…
Reference in New Issue
Block a user