mirror of
https://github.com/prometheus/prometheus
synced 2025-01-30 19:55:53 +00:00
9fb65a91af
Move defer resp.Body.Close() up to make sure it's called even when the HTTP request returns something other than 200 or Decoder construction fails. This avoids leaking and eventually running out of file descriptors. |
||
---|---|---|
.. | ||
discovery | ||
testdata | ||
helpers_test.go | ||
relabel_test.go | ||
relabel.go | ||
target_test.go | ||
target.go | ||
targetmanager_test.go | ||
targetmanager.go |