reduce large stack frames

This commit is contained in:
Jason Volk 2025-04-08 03:17:23 +00:00 committed by Jade Ellis
parent de6d961535
commit a5aed9f43d
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -1,6 +1,7 @@
use std::collections::BTreeMap;
use conduwuit::{Result, pdu::PduBuilder};
use futures::FutureExt;
use ruma::{
RoomId, RoomVersionId,
events::room::{
@ -63,6 +64,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
// 2. Make server user/bot join
@ -78,6 +80,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
// 3. Power levels
@ -95,6 +98,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
// 4.1 Join Rules
@ -107,6 +111,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
// 4.2 History Visibility
@ -122,6 +127,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
// 4.3 Guest Access
@ -137,6 +143,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
// 5. Events implied by name and topic
@ -150,6 +157,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
services
@ -163,6 +171,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
// 6. Room alias
@ -180,6 +189,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
services
@ -197,6 +207,7 @@ pub async fn create_admin_room(services: &Services) -> Result {
&room_id,
&state_lock,
)
.boxed()
.await?;
Ok(())