aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath
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/autopath
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/autopath')
-rw-r--r--plugin/autopath/autopath.go4
-rw-r--r--plugin/autopath/autopath_test.go3
2 files changed, 3 insertions, 4 deletions
diff --git a/plugin/autopath/autopath.go b/plugin/autopath/autopath.go
index d2c00b7b5..693f09e47 100644
--- a/plugin/autopath/autopath.go
+++ b/plugin/autopath/autopath.go
@@ -32,13 +32,13 @@ func (m Plugins ) AutoPath(state request.Request) []string {
package autopath
import (
+ "context"
+
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/nonwriter"
"github.com/coredns/coredns/request"
- "context"
-
"github.com/miekg/dns"
)
diff --git a/plugin/autopath/autopath_test.go b/plugin/autopath/autopath_test.go
index 53140932d..a92ea4573 100644
--- a/plugin/autopath/autopath_test.go
+++ b/plugin/autopath/autopath_test.go
@@ -1,14 +1,13 @@
package autopath
import (
+ "context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
- "context"
-
"github.com/miekg/dns"
)