aboutsummaryrefslogtreecommitdiff
path: root/plugin/errors
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/errors
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/errors')
-rw-r--r--plugin/errors/errors.go3
-rw-r--r--plugin/errors/errors_test.go3
2 files changed, 2 insertions, 4 deletions
diff --git a/plugin/errors/errors.go b/plugin/errors/errors.go
index 1d7c4256b..a8724f44b 100644
--- a/plugin/errors/errors.go
+++ b/plugin/errors/errors.go
@@ -2,6 +2,7 @@
package errors
import (
+ "context"
"fmt"
"log"
"runtime"
@@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
- "context"
-
"github.com/miekg/dns"
)
diff --git a/plugin/errors/errors_test.go b/plugin/errors/errors_test.go
index bc78f13d5..f3857df56 100644
--- a/plugin/errors/errors_test.go
+++ b/plugin/errors/errors_test.go
@@ -2,6 +2,7 @@ package errors
import (
"bytes"
+ "context"
"errors"
"fmt"
"log"
@@ -12,8 +13,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
- "context"
-
"github.com/miekg/dns"
)