优化代码

This commit is contained in:
GoEdgeLab
2022-11-17 10:35:43 +08:00
parent 2a67bfe7e0
commit 34430e62cf

View File

@@ -238,11 +238,6 @@ func (this *RPCClient) pickConn() *grpc.ClientConn {
if len(availableConns) > 0 {
return this.randConn(availableConns)
}
// 关闭
for _, conn := range this.conns {
_ = conn.Close()
}
}
// 重新初始化