未验证 提交 d83654c3 编写于 作者: C congqixia 提交者: GitHub

Add Close method for ChannelManager in datacoord (#23493)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 b2372353
......@@ -184,6 +184,13 @@ func (c *ChannelManager) Startup(ctx context.Context, nodes []int64) error {
return nil
}
// Close notifies the running checker.
func (c *ChannelManager) Close() {
if c.stopChecker != nil {
c.stopChecker()
}
}
// checkOldNodes processes the existing watch channels when starting up.
// ToWatch get startTs and timeoutTs, start timer
// WatchSuccess ignore
......
......@@ -139,4 +139,5 @@ func (c *Cluster) GetSessions() []*Session {
// Close releases resources opened in Cluster
func (c *Cluster) Close() {
c.sessionManager.Close()
c.channelManager.Close()
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册