全局IP名单不即时通知节点更新

This commit is contained in:
GoEdgeLab
2021-12-12 14:38:57 +08:00
parent 40d93c5b09
commit cfe0f90d99
2 changed files with 6 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ func (this *NodeService) NodeStream(server pb.NodeService_NodeStreamServer) erro
defer func() {
// 修改当前API节点的主边缘节点
/// TODO 每个集群应该有一个primaryNodeId
if primaryNodeId == nodeId {
primaryNodeId = 0