mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Don't use standard lib context package (#1468)
With Go 1.9 you *can* include the std lib's context package and nothing breaks. However we never officially made the move (and grpc also doesn't ues the std lib's one). Standardize all plugins on using the extern context package. Fixes #1466
This commit is contained in:
committed by
John Belamaric
parent
449bb1ac6c
commit
f91cb61086
@@ -2,7 +2,6 @@ package template
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"regexp"
|
||||
"strconv"
|
||||
gotmpl "text/template"
|
||||
@@ -12,6 +11,7 @@ import (
|
||||
"github.com/coredns/coredns/request"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// Handler is a plugin handler that takes a query and templates a response.
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package template
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"testing"
|
||||
@@ -13,6 +12,7 @@ import (
|
||||
|
||||
"github.com/mholt/caddy"
|
||||
"github.com/miekg/dns"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
func TestHandler(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user