mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
实现基本的集群DNS列表、设置、简单数据同步
This commit is contained in:
@@ -306,6 +306,11 @@ func (this *RPCClient) pickConn() *grpc.ClientConn {
|
||||
if len(availableConns) > 0 {
|
||||
return availableConns[rands.Int(0, len(availableConns)-1)]
|
||||
}
|
||||
|
||||
// 关闭
|
||||
for _, conn := range this.conns {
|
||||
_ = conn.Close()
|
||||
}
|
||||
}
|
||||
|
||||
// 重新初始化
|
||||
|
||||
Reference in New Issue
Block a user