fix ineffectual assignment in dns.go

Signed-off-by: tariqibrahim <tariq181290@gmail.com>
This commit is contained in:
tariqibrahim 2019-01-28 17:14:23 -08:00 committed by tariqibrahim
parent 63f375e80a
commit b173de0c26
1 changed files with 1 additions and 1 deletions

View File

@ -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.