Commit 21ddfe82 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Move singleflight out of middleware/ (#217)

It is not middleware, so move it up one level. It was also use from
core/ showing that indeed its use is not limited to middlewares.
parent 9aaeef63
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"github.com/miekg/coredns/middleware" "github.com/miekg/coredns/middleware"
"github.com/miekg/coredns/middleware/etcd" "github.com/miekg/coredns/middleware/etcd"
"github.com/miekg/coredns/middleware/proxy" "github.com/miekg/coredns/middleware/proxy"
"github.com/miekg/coredns/middleware/singleflight" "github.com/miekg/coredns/singleflight"
etcdc "github.com/coreos/etcd/client" etcdc "github.com/coreos/etcd/client"
"golang.org/x/net/context" "golang.org/x/net/context"
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"time" "time"
"github.com/miekg/coredns/middleware" "github.com/miekg/coredns/middleware"
"github.com/miekg/coredns/middleware/singleflight" "github.com/miekg/coredns/singleflight"
"github.com/miekg/dns" "github.com/miekg/dns"
gcache "github.com/patrickmn/go-cache" gcache "github.com/patrickmn/go-cache"
......
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
"github.com/miekg/coredns/middleware" "github.com/miekg/coredns/middleware"
"github.com/miekg/coredns/middleware/etcd/msg" "github.com/miekg/coredns/middleware/etcd/msg"
"github.com/miekg/coredns/middleware/proxy" "github.com/miekg/coredns/middleware/proxy"
"github.com/miekg/coredns/middleware/singleflight" "github.com/miekg/coredns/singleflight"
etcdc "github.com/coreos/etcd/client" etcdc "github.com/coreos/etcd/client"
"golang.org/x/net/context" "golang.org/x/net/context"
......
...@@ -11,8 +11,8 @@ import ( ...@@ -11,8 +11,8 @@ import (
"github.com/miekg/coredns/middleware" "github.com/miekg/coredns/middleware"
"github.com/miekg/coredns/middleware/etcd/msg" "github.com/miekg/coredns/middleware/etcd/msg"
"github.com/miekg/coredns/middleware/proxy" "github.com/miekg/coredns/middleware/proxy"
"github.com/miekg/coredns/middleware/singleflight"
"github.com/miekg/coredns/middleware/test" "github.com/miekg/coredns/middleware/test"
"github.com/miekg/coredns/singleflight"
etcdc "github.com/coreos/etcd/client" etcdc "github.com/coreos/etcd/client"
"github.com/miekg/dns" "github.com/miekg/dns"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment