switch to stdlib context
This commit is contained in:
parent
bbba7ba4eb
commit
4a8855f478
3
http.go
3
http.go
@ -4,6 +4,7 @@ package http
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
@ -21,8 +22,6 @@ import (
|
||||
"github.com/micro/go-micro/registry"
|
||||
"github.com/micro/go-micro/selector"
|
||||
"github.com/micro/go-micro/transport"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
type httpClient struct {
|
||||
|
@ -3,6 +3,7 @@ package http
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
@ -15,8 +16,6 @@ import (
|
||||
"github.com/micro/go-micro/selector"
|
||||
"github.com/micro/go-plugins/client/http/test"
|
||||
"github.com/micro/go-plugins/registry/memory"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
func TestHTTPClient(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user