优化代码

This commit is contained in:
刘祥超
2022-11-17 10:35:43 +08:00
parent 32720d772d
commit c209ab912f

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()
}
}
// 重新初始化