Review feedback

This commit is contained in:
Alfonso Acosta
2016-06-13 15:54:40 +00:00
parent 3542c6b2f8
commit e01b88b7d9

View File

@@ -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 {