cork around send_join response processing
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -877,6 +877,7 @@ async fn join_room_by_id_helper_remote(
|
|||||||
.await;
|
.await;
|
||||||
|
|
||||||
info!("Going through send_join response room_state");
|
info!("Going through send_join response room_state");
|
||||||
|
let cork = services.db.cork_and_flush();
|
||||||
let mut state = HashMap::new();
|
let mut state = HashMap::new();
|
||||||
for result in send_join_response.room_state.state.iter().map(|pdu| {
|
for result in send_join_response.room_state.state.iter().map(|pdu| {
|
||||||
services
|
services
|
||||||
@@ -902,8 +903,10 @@ async fn join_room_by_id_helper_remote(
|
|||||||
state.insert(shortstatekey, pdu.event_id.clone());
|
state.insert(shortstatekey, pdu.event_id.clone());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
drop(cork);
|
||||||
|
|
||||||
info!("Going through send_join response auth_chain");
|
info!("Going through send_join response auth_chain");
|
||||||
|
let cork = services.db.cork_and_flush();
|
||||||
for result in send_join_response.room_state.auth_chain.iter().map(|pdu| {
|
for result in send_join_response.room_state.auth_chain.iter().map(|pdu| {
|
||||||
services
|
services
|
||||||
.server_keys
|
.server_keys
|
||||||
@@ -915,6 +918,7 @@ async fn join_room_by_id_helper_remote(
|
|||||||
|
|
||||||
services.rooms.outlier.add_pdu_outlier(&event_id, &value);
|
services.rooms.outlier.add_pdu_outlier(&event_id, &value);
|
||||||
}
|
}
|
||||||
|
drop(cork);
|
||||||
|
|
||||||
debug!("Running send_join auth check");
|
debug!("Running send_join auth check");
|
||||||
let fetch_state = &state;
|
let fetch_state = &state;
|
||||||
|
|||||||
Reference in New Issue
Block a user