Remove unused roundtripper code
This commit is contained in:
		| @@ -3,7 +3,6 @@ package client | ||||
| import ( | ||||
| 	"encoding/json" | ||||
| 	"fmt" | ||||
| 	"net/http" | ||||
| 	"sync" | ||||
|  | ||||
| 	"github.com/micro/go-micro/broker" | ||||
| @@ -18,10 +17,6 @@ import ( | ||||
| 	"golang.org/x/net/context" | ||||
| ) | ||||
|  | ||||
| type headerRoundTripper struct { | ||||
| 	r http.RoundTripper | ||||
| } | ||||
|  | ||||
| type rpcClient struct { | ||||
| 	once sync.Once | ||||
| 	opts options | ||||
| @@ -56,11 +51,6 @@ func newRpcClient(opt ...Option) Client { | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func (t *headerRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) { | ||||
| 	r.Header.Set("X-Client-Version", "1.0") | ||||
| 	return t.r.RoundTrip(r) | ||||
| } | ||||
|  | ||||
| func (r *rpcClient) codecFunc(contentType string) (codecFunc, error) { | ||||
| 	if cf, ok := r.opts.codecs[contentType]; ok { | ||||
| 		return codecWrap(cf), nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user