reduce large stack frames
This commit is contained in:
parent
8e7373c027
commit
e71138ab6f
1 changed files with 11 additions and 0 deletions
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue