From e01b88b7d93b9d91f1c81d923d27f4be2d96fff9 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Mon, 13 Jun 2016 15:54:40 +0000 Subject: [PATCH] Review feedback --- probe/appclient/app_client.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/probe/appclient/app_client.go b/probe/appclient/app_client.go index 92fa3a8f0..bffaf0d5c 100644 --- a/probe/appclient/app_client.go +++ b/probe/appclient/app_client.go @@ -249,9 +249,7 @@ func (c *appClient) publish(r io.Reader) error { // req.Header.Set("Content-Type", "application/binary") // TODO: we should use http.DetectContentType(..) on the gob'ed // Make sure this request is cancelled when we stop the client - c.mtx.Lock() req.Cancel = c.quit - c.mtx.Unlock() resp, err := c.client.Do(req) if err != nil {