add missing await to first admin room creation
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
3f7ec4221d
commit
4496cf2d5b
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue