Merge pull request #5146 from tariq1890/ineff

fix ineffectual assignment in dns.go
pull/5152/head
Ganesh Vernekar 6 years ago committed by GitHub
commit a2ef8cf2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save