mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Merge pull request #5247 from longkb/fix_typo
Trivial fix: Fix some typos in comments
This commit is contained in:
commit
1d9e11a390
|
@ -54,7 +54,7 @@ var (
|
|||
)
|
||||
|
||||
// CatalogService is copied from https://github.com/hashicorp/consul/blob/master/api/catalog.go
|
||||
// this struct respresents the response from a /service/<service-name> request.
|
||||
// this struct represents the response from a /service/<service-name> request.
|
||||
// Consul License: https://github.com/hashicorp/consul/blob/master/LICENSE
|
||||
type CatalogService struct {
|
||||
ID string
|
||||
|
@ -169,7 +169,7 @@ func (d *discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) {
|
|||
}
|
||||
|
||||
var tgs []*targetgroup.Group
|
||||
// Note that we treat errors when querying specific consul services as fatal for for this
|
||||
// Note that we treat errors when querying specific consul services as fatal for this
|
||||
// iteration of the time.Tick loop. It's better to have some stale targets than an incomplete
|
||||
// list of targets simply because there may have been a timeout. If the service is actually
|
||||
// gone as far as consul is concerned, that will be picked up during the next iteration of
|
||||
|
|
Loading…
Reference in a new issue