reachlin / sensu_exporter

a Prometheus exporter for Sensu
Apache License 2.0
8 stars 14 forks source link

sensu_exporter.go: fix timeout flag #4

Closed cstockton closed 4 years ago

cstockton commented 5 years ago

The code was capturing the address of the flag as a parameter to a package scoped variable delcaration, deferefencing before the flag.Parse call could assign a value. Since it relies on flag.Parse it had to be moved after, so I pass it to New*.