aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-04-22 08:34:35 +0100
committerGravatar GitHub <noreply@github.com> 2018-04-22 08:34:35 +0100
commit0930eb8beb69684dfb1e1e066e2a7a6ed3827bf4 (patch)
tree80ead193f34227b1fc8f010f83a727edd89bf9f3 /plugin/cache
parent69a956f052a603eca3d400abf8a44a9b44f83184 (diff)
downloadcoredns-0930eb8beb69684dfb1e1e066e2a7a6ed3827bf4.tar.gz
coredns-0930eb8beb69684dfb1e1e066e2a7a6ed3827bf4.tar.zst
coredns-0930eb8beb69684dfb1e1e066e2a7a6ed3827bf4.zip
all: fix plugin import ordering (#1717)
Got a bit messed up with stb lib "context" usage.
Diffstat (limited to 'plugin/cache')
-rw-r--r--plugin/cache/cache_test.go3
-rw-r--r--plugin/cache/handler.go3
-rw-r--r--plugin/cache/prefech_test.go3
-rw-r--r--plugin/cache/spoof_test.go3
4 files changed, 4 insertions, 8 deletions
diff --git a/plugin/cache/cache_test.go b/plugin/cache/cache_test.go
index 0531d1c33..131803ea7 100644
--- a/plugin/cache/cache_test.go
+++ b/plugin/cache/cache_test.go
@@ -1,11 +1,10 @@
package cache
import (
+ "context"
"testing"
"time"
- "context"
-
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/plugin/test"
diff --git a/plugin/cache/handler.go b/plugin/cache/handler.go
index 988b13c4a..d6ed0dcad 100644
--- a/plugin/cache/handler.go
+++ b/plugin/cache/handler.go
@@ -1,6 +1,7 @@
package cache
import (
+ "context"
"math"
"sync"
"time"
@@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
- "context"
-
"github.com/miekg/dns"
"github.com/prometheus/client_golang/prometheus"
)
diff --git a/plugin/cache/prefech_test.go b/plugin/cache/prefech_test.go
index 1f32396e1..36d5c11fa 100644
--- a/plugin/cache/prefech_test.go
+++ b/plugin/cache/prefech_test.go
@@ -1,6 +1,7 @@
package cache
import (
+ "context"
"fmt"
"testing"
"time"
@@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
- "context"
-
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
)
diff --git a/plugin/cache/spoof_test.go b/plugin/cache/spoof_test.go
index a855d8fab..e9c618f03 100644
--- a/plugin/cache/spoof_test.go
+++ b/plugin/cache/spoof_test.go
@@ -1,13 +1,12 @@
package cache
import (
+ "context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
- "context"
-
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
)