mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Fix comment
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
45644c82f6
commit
968c86d642
|
@ -108,8 +108,8 @@ func NewDiscovery(conf *SDConfig, logger log.Logger) (*Discovery, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// There are other protocols that HTTP supported by the Docker daemon, like
|
// There are other protocols that HTTP supported by the Docker daemon, like
|
||||||
// unix, which do not require an http client. Passing an http client to the
|
// unix, which are not supported by the HTTP client. Passing HTTP client
|
||||||
// docker client makes those non-http requests fail.
|
// options to the Docker client makes those non-HTTP requests fail.
|
||||||
if conf.url.Scheme == "http" || conf.url.Scheme == "https" {
|
if conf.url.Scheme == "http" || conf.url.Scheme == "https" {
|
||||||
rt, err := config_util.NewRoundTripperFromConfig(conf.HTTPClientConfig, "dockerswarm_sd", false)
|
rt, err := config_util.NewRoundTripperFromConfig(conf.HTTPClientConfig, "dockerswarm_sd", false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue