add missing await to first admin room creation
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -30,7 +30,11 @@ use crate::Services;
|
|||||||
pub async fn create_admin_room(services: &Services) -> Result<()> {
|
pub async fn create_admin_room(services: &Services) -> Result<()> {
|
||||||
let room_id = RoomId::new(services.globals.server_name());
|
let room_id = RoomId::new(services.globals.server_name());
|
||||||
|
|
||||||
let _short_id = services.rooms.short.get_or_create_shortroomid(&room_id);
|
let _short_id = services
|
||||||
|
.rooms
|
||||||
|
.short
|
||||||
|
.get_or_create_shortroomid(&room_id)
|
||||||
|
.await;
|
||||||
|
|
||||||
let state_lock = services.rooms.state.mutex.lock(&room_id).await;
|
let state_lock = services.rooms.state.mutex.lock(&room_id).await;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user