提交 d9f4a8c9 编写于 作者: S Sylvain Rabot 提交者: Brian Brazil

sd: Fix stuck Azure service discovery (#5088)

Signed-off-by: NSylvain Rabot <s.rabot@lectra.com>
上级 d7225ac4
...@@ -362,6 +362,10 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) { ...@@ -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) }(i, vm)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册