switch to stdlib context

This commit is contained in:
Asim Aslam 2018-03-03 12:28:44 +00:00 committed by Vasiliy Tolstov
parent bbba7ba4eb
commit 4a8855f478
3 changed files with 3 additions and 6 deletions

View File

@ -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 {

View File

@ -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) {

View File

@ -3,6 +3,7 @@ package http
import (
"bufio"
"bytes"
"context"
"errors"
"io/ioutil"
"net"
@ -11,8 +12,6 @@ import (
"sync"
"github.com/micro/go-micro/client"
"golang.org/x/net/context"
)
// Implements the streamer interface