drop the fucking mutex lock on the fucking userobject info BEFORE sitting and doing fucking nothing for 300 fucking seconds like a fucking idiot #18

Merged
xyon merged 2 commits from hotfix/fucking-field-limits-ffs into main 2024-10-20 15:51:23 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit fa68df0a94 - Show all commits

View File

@ -163,6 +163,9 @@ async fn leaderboard(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
return Ok(())
}
// Release our mutex lock on this object before the paginate call to avoid holding a lock on it for the full paginate interaction listener timeout duration
drop(userinfo);
manifold::helpers::paginate(ctx, reply_handle, pages, 0).await?;
Ok(())

View File

@ -10,7 +10,7 @@ use manifold::error::{ManifoldError, ManifoldResult};
use manifold::models::user::UserInfo;
use manifold::schema::userinfo;
use poise::FrameworkContext;
use poise::serenity_prelude::{Context, Mention, Mentionable, Message, RoleId, UserId};
use poise::serenity_prelude::{Context, Mentionable, Message, RoleId};
use crate::badgey::models::quarantine_channel::QuarantineChannel;
use crate::badgey::schema::xp as xp_table;
use crate::badgey::schema::*;