Skip to content

Commit

Permalink
fix: Close the response body of a WriteBatch call
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmora committed Jan 12, 2022
1 parent ada9e3b commit 63bcf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/write/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (w *Service) WriteBatch(ctx context.Context, batch *Batch) *http2.Error {
req.Header.Set("Content-Encoding", "gzip")
}
}, func(r *http.Response) error {
return nil
return r.Body.Close()
})
return perror
}
Expand Down

0 comments on commit 63bcf73

Please sign in to comment.