Merge branch 'enterprise' into int-fragment-sync-quick-fix

This commit is contained in:
Travis Turner 2020-03-09 14:56:06 -05:00 committed by GitHub
commit f747501473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1121,7 +1121,9 @@ func (c *InternalClient) SendMessage(ctx context.Context, uri *pilosa.URI, msg [
if err != nil {
return errors.Wrap(err, "executing request")
}
return errors.Wrap(resp.Body.Close(), "closing response body")
defer resp.Body.Close()
_, err = io.Copy(ioutil.Discard, resp.Body)
return errors.Wrap(err, "draining SendMessage response body")
}
// TranslateKeysNode sends a key translation request to a specific node.