mirror of
https://github.com/prometheus/prometheus
synced 2025-02-05 22:56:13 +00:00
Merge pull request #5146 from tariq1890/ineff
fix ineffectual assignment in dns.go
This commit is contained in:
commit
a2ef8cf2f5
@ -178,7 +178,7 @@ func (d *Discovery) refresh(ctx context.Context, name string, ch chan<- []*targe
|
||||
}
|
||||
|
||||
for _, record := range response.Answer {
|
||||
target := model.LabelValue("")
|
||||
var target model.LabelValue
|
||||
switch addr := record.(type) {
|
||||
case *dns.SRV:
|
||||
// Remove the final dot from rooted DNS names to make them look more usual.
|
||||
|
Loading…
Reference in New Issue
Block a user