feat: Add compile flag to instantly drop mutex for A/B testing
This commit is contained in:
parent
1730cc9ff3
commit
c3f6c73ac4
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ pub(super) async fn load_joined_room(
|
|||
*/
|
||||
|
||||
let insert_lock = services.rooms.timeline.mutex_insert.lock(room_id).await;
|
||||
#[cfg(feature = "sync-drop-instant")]
|
||||
drop(insert_lock);
|
||||
let (
|
||||
account_data,
|
||||
ephemeral,
|
||||
|
|
@ -83,6 +85,7 @@ pub(super) async fn load_joined_room(
|
|||
)
|
||||
.boxed()
|
||||
.await?;
|
||||
#[cfg(not(feature = "sync-drop-instant"))]
|
||||
drop(insert_lock);
|
||||
|
||||
if !timeline.is_empty() || !state_events.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue