From 9ccea7e9133193843ee72056a1fb2ecf332161af Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Thu, 8 Aug 2024 20:09:25 +0800 Subject: [PATCH] address the comment Signed-off-by: Ryan Leung --- pkg/keyspace/tso_keyspace_group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/keyspace/tso_keyspace_group.go b/pkg/keyspace/tso_keyspace_group.go index a51d86c87a2..63a29d91dc0 100644 --- a/pkg/keyspace/tso_keyspace_group.go +++ b/pkg/keyspace/tso_keyspace_group.go @@ -181,7 +181,7 @@ func (m *GroupManager) allocNodesToAllKeyspaceGroups(ctx context.Context) { log.Info("the raftcluster is closed, stop to alloc nodes to all keyspace groups") return case <-ticker.C: - if m.nodesBalancer.Len() == 0 { + if m.GetNodesCount() == 0 { continue } }