httptransport: use ctxhttp to propagate context
Simon Jefford
8 years ago
5 | 5 | "net/url" |
6 | 6 | |
7 | 7 | "golang.org/x/net/context" |
8 | "golang.org/x/net/context/ctxhttp" | |
8 | 9 | |
9 | 10 | "github.com/go-kit/kit/endpoint" |
10 | 11 | ) |
70 | 71 | ctx = f(ctx, req) |
71 | 72 | } |
72 | 73 | |
73 | resp, err := c.client.Do(req) | |
74 | resp, err := ctxhttp.Do(ctx, c.client, req) | |
74 | 75 | if err != nil { |
75 | 76 | return nil, fmt.Errorf("Do: %v", err) |
76 | 77 | } |