aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd/lookup_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-11-26 17:21:24 +0000
committerGravatar GitHub <noreply@github.com> 2017-11-26 17:21:24 +0000
commit9d52b5acb967e5d94e67cd205498c9c59c5ddcf6 (patch)
tree28a5d7a6c3840fecaca3f80106c8194990ca7cb4 /plugin/etcd/lookup_test.go
parentf621870d9c522f73f641d8fed22b3e0911246f50 (diff)
downloadcoredns-9d52b5acb967e5d94e67cd205498c9c59c5ddcf6.tar.gz
coredns-9d52b5acb967e5d94e67cd205498c9c59c5ddcf6.tar.zst
coredns-9d52b5acb967e5d94e67cd205498c9c59c5ddcf6.zip
plugin/etcd: drop inflight (#1249)
Use caching, just ask etcd for every query. This also improves throughput because the single lock in inflght is bypassed.
Diffstat (limited to 'plugin/etcd/lookup_test.go')
-rw-r--r--plugin/etcd/lookup_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugin/etcd/lookup_test.go b/plugin/etcd/lookup_test.go
index e185d341d..adf079443 100644
--- a/plugin/etcd/lookup_test.go
+++ b/plugin/etcd/lookup_test.go
@@ -10,7 +10,6 @@ import (
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/plugin/pkg/dnstest"
- "github.com/coredns/coredns/plugin/pkg/singleflight"
"github.com/coredns/coredns/plugin/pkg/tls"
"github.com/coredns/coredns/plugin/proxy"
"github.com/coredns/coredns/plugin/test"
@@ -232,7 +231,6 @@ func newEtcdPlugin() *Etcd {
Proxy: proxy.NewLookup([]string{"8.8.8.8:53"}),
PathPrefix: "skydns",
Ctx: context.Background(),
- Inflight: &singleflight.Group{},
Zones: []string{"skydns.test.", "skydns_extra.test.", "in-addr.arpa."},
Client: client,
}