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 (
|
||||
"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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user