diff --git a/.travis.yml b/.travis.yml index 76f6fbf..ddba783 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,11 @@ notifications: email: false language: go go: - - "1.2" + - "1.8" install: - - "wget https://github.com/coreos/etcd/releases/download/v0.4.4/etcd-v0.4.4-linux-amd64.tar.gz" - - "tar -zxvf etcd-v0.4.4-linux-amd64.tar.gz" - - "etcd-v0.4.4-linux-amd64/etcd -name travis &" + - "wget https://github.com/coreos/etcd/releases/download/v3.1.2/etcd-v3.1.2-linux-amd64.tar.gz" + - "tar -zxvf etcd-v3.1.2-linux-amd64.tar.gz" + - "etcd-v3.1.2-linux-amd64/etcd -name travis &" - "sleep 5" # Wait for etcd to come up cache: apt script: "make get && make test" diff --git a/README.md b/README.md index 4f36a88..c385319 100644 --- a/README.md +++ b/README.md @@ -66,13 +66,13 @@ Why not ZooKeeper? The etcd API is much simpler for users to use, and it uses [R Another attractive quality about etcd is the ability to continue serving (albeit stale) read queries even when a consensus cannot be reached, allowing the cluster to enter a semi-failed state where it cannot accept writes, but it will serve reads. This kind of graceful service degradation is very useful for a read-heavy system, such as DNS. -Currently, discodns is locked to etcd 0.4.6 +Currently, discodns has been tested against ETCD 3.1.2. ## Getting Started The discodns project is written in Go, and uses an extensive library ([miekg/dns](https://github.com/miekg/dns)) to provide the actual implementation of the DNS protocol. -You'll need to compile from source, though a Makefile is provided to make this easier. Before starting, you'll need to ensure you have [Go](http://golang.org/) (1.2+) installed. +You'll need to compile from source, though a Makefile is provided to make this easier. Before starting, you'll need to ensure you have [Go](http://golang.org/) (1.8+) installed. ### Building diff --git a/resolver_test.go b/resolver_test.go index 39bc78e..60815f2 100644 --- a/resolver_test.go +++ b/resolver_test.go @@ -9,7 +9,7 @@ import ( ) var ( - client = etcd.NewClient([]string{"127.0.0.1:4001"}) + client = etcd.NewClient([]string{"http://127.0.0.1:2379"}) resolver = &Resolver{etcd: client} )