update breaks

This commit is contained in:
Asim Aslam 2019-01-10 22:12:43 +00:00 committed by Vasiliy Tolstov
parent b8105ba4d1
commit d0adceec59
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ func (h *httpClient) call(ctx context.Context, address string, req client.Reques
URL: &url.URL{
Scheme: "http",
Host: address,
Path: req.Method(),
Path: req.Endpoint(),
},
Header: header,
Body: buf,

View File

@ -40,7 +40,7 @@ func (h *httpRequest) Service() string {
return h.service
}
func (h *httpRequest) Method() string {
func (h *httpRequest) Endpoint() string {
return h.method
}

View File

@ -72,7 +72,7 @@ func (h *httpStream) Send(msg interface{}) error {
URL: &url.URL{
Scheme: "http",
Host: h.address,
Path: h.request.Method(),
Path: h.request.Endpoint(),
},
Header: h.header,
Body: buf,