diff options
author | 2018-04-20 11:01:06 +0100 | |
---|---|---|
committer | 2018-04-20 11:01:06 +0100 | |
commit | 8722336fff479e00900e3299f31063a9d1a76e9a (patch) | |
tree | deb3d99aeae1d8543a3dbfd20bc36b4ef7daff1b /plugin/route53 | |
parent | 61726b3721b6049f436841fe4c5f7db48d5a39d0 (diff) | |
download | coredns-8722336fff479e00900e3299f31063a9d1a76e9a.tar.gz coredns-8722336fff479e00900e3299f31063a9d1a76e9a.tar.zst coredns-8722336fff479e00900e3299f31063a9d1a76e9a.zip |
global: move to context (#1699)
* global: move to context
Move from golang.org/x/net/context to std lib's context.
Change done with:
for i in $(grep -l '/context' **/*.go); do sed -e 's|golang.org/x/net/context|context|' -i $i; echo $i; done
for i in **/*.go; do goimports -w $i; done
* drop from dns.pb.go as well
Diffstat (limited to 'plugin/route53')
-rw-r--r-- | plugin/route53/route53.go | 3 | ||||
-rw-r--r-- | plugin/route53/route53_test.go | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugin/route53/route53.go b/plugin/route53/route53.go index c40c56db3..66adcbb9a 100644 --- a/plugin/route53/route53.go +++ b/plugin/route53/route53.go @@ -8,11 +8,12 @@ import ( "github.com/coredns/coredns/plugin" "github.com/coredns/coredns/request" + "context" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" "github.com/aws/aws-sdk-go/service/route53/route53iface" "github.com/miekg/dns" - "golang.org/x/net/context" ) // Route53 is a plugin that returns RR from AWS route53 diff --git a/plugin/route53/route53_test.go b/plugin/route53/route53_test.go index a543231c1..4ad9171cc 100644 --- a/plugin/route53/route53_test.go +++ b/plugin/route53/route53_test.go @@ -6,11 +6,12 @@ import ( "github.com/coredns/coredns/plugin/pkg/dnstest" "github.com/coredns/coredns/plugin/test" + "context" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/route53" "github.com/aws/aws-sdk-go/service/route53/route53iface" "github.com/miekg/dns" - "golang.org/x/net/context" ) type mockedRoute53 struct { |