Wrap DNS lookup metric time defer
authorBen Kochie <bjk@gitlab.com>
Mon, 30 Oct 2017 15:51:58 +0000 (16:51 +0100)
committerBrian Brazil <brian.brazil@robustperception.io>
Wed, 1 Nov 2017 15:22:34 +0000 (15:22 +0000)
commit3612bba5d5200f80da0516e039703e357ba837b0
treeec15f8a0f7ff06db9b4e33f86fb5fd569de6872f
parent75681e3c4f051e24269a132e8ec19517118e1586
Wrap DNS lookup metric time defer

Wrap the DNS lookup time `defer` in an anonymous function to avoid
arguments being evaluated early.

Closes: https://github.com/prometheus/blackbox_exporter/issues/253
prober/utils.go