lint fixes (#14)

* lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-21 14:53:21 +03:00
committed by GitHub
parent 199ff66bd4
commit c4a303190a
42 changed files with 95 additions and 178 deletions

View File

@@ -143,6 +143,7 @@ func (p *Proxy) serveRequest(ctx context.Context, link client.Client, service, e
// new context with cancel
ctx, cancel := context.WithCancel(ctx)
defer cancel()
// create new stream
stream, err := link.Stream(ctx, creq, opts...)

View File

@@ -21,9 +21,6 @@ type Proxy struct {
// The http backend to call
Endpoint string
// first request
first bool
}
func getMethod(hdr map[string]string) string {

View File

@@ -517,6 +517,7 @@ func (p *Proxy) serveRequest(ctx context.Context, link client.Client, service, e
// new context with cancel
ctx, cancel := context.WithCancel(ctx)
defer cancel()
// create new stream
stream, err := link.Stream(ctx, creq, opts...)