Add TLS support for nsqd stats connections.

This commit is contained in:
Marcus Barczak
2017-11-29 08:18:52 -08:00
parent 34a11d6135
commit db85b3fcb4
3 changed files with 40 additions and 8 deletions

View File

@ -84,9 +84,8 @@ func getPercentile(t *topic, percentile int) float64 {
return 0
}
func getNsqdStats(nsqdURL string) (*stats, error) {
resp, err := http.Get(nsqdURL)
func getNsqdStats(client *http.Client, nsqdURL string) (*stats, error) {
resp, err := client.Get(nsqdURL)
if err != nil {
return nil, err
}