You've already forked AstralRinth
forked from didirus/AstralRinth
Fix high memory usage during search (#798)
* Fix high memory usage during search * Fix settings lag * Fix clippy + fmt
This commit is contained in:
@@ -494,6 +494,12 @@ impl Version {
|
||||
where
|
||||
E: sqlx::Acquire<'a, Database = sqlx::Postgres>,
|
||||
{
|
||||
let version_ids = version_ids
|
||||
.iter()
|
||||
.unique()
|
||||
.copied()
|
||||
.collect::<Vec<VersionId>>();
|
||||
|
||||
use futures::stream::TryStreamExt;
|
||||
|
||||
if version_ids.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user