sd: Fix stuck Azure service discovery (#5088)

Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
This commit is contained in:
Sylvain Rabot 2019-01-14 16:09:27 +01:00 committed by Brian Brazil
parent d7225ac4a2
commit d9f4a8c95f
1 changed files with 4 additions and 0 deletions

View File

@ -362,6 +362,10 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) {
}
}
}
// If we get here we haven't sent anything to the channel.
// We need to send it something to release it.
ch <- target{}
}(i, vm)
}