yandex: Fix socket leaks

This commit is contained in:
Nick Craig-Wood
2015-12-30 14:30:16 +00:00
parent 82b85431bd
commit 9ade179407
7 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ func runRequest(client *Client, req *http.Request) ([]byte, error) {
return runRequestWithErrorHandler(client, req, defaultErrorHandler)
}
func runRequestWithErrorHandler(client *Client, req *http.Request, errorHandler ErrorHandler) ([]byte, error) {
func runRequestWithErrorHandler(client *Client, req *http.Request, errorHandler ErrorHandler) (out []byte, err error) {
resp, err := client.HTTPClient.Do(req)
if err != nil {
return nil, err