perf: Delayed drop is probably unnecessary

This commit is contained in:
timedout
2026-02-23 21:18:46 +00:00
parent c3f6c73ac4
commit 123aa2456c
-3
View File
@@ -66,7 +66,6 @@ pub(super) async fn load_joined_room(
*/ */
let insert_lock = services.rooms.timeline.mutex_insert.lock(room_id).await; let insert_lock = services.rooms.timeline.mutex_insert.lock(room_id).await;
#[cfg(feature = "sync-drop-instant")]
drop(insert_lock); drop(insert_lock);
let ( let (
account_data, account_data,
@@ -85,8 +84,6 @@ pub(super) async fn load_joined_room(
) )
.boxed() .boxed()
.await?; .await?;
#[cfg(not(feature = "sync-drop-instant"))]
drop(insert_lock);
if !timeline.is_empty() || !state_events.is_empty() { if !timeline.is_empty() || !state_events.is_empty() {
trace!( trace!(