Skip to content

Commit

Permalink
add missing await to first admin room creation
Browse files Browse the repository at this point in the history
Signed-off-by: strawberry <[email protected]>
  • Loading branch information
girlbossceo authored and jevolk committed Sep 28, 2024
1 parent a4f59d0 commit 5f12e94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/service/admin/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ use crate::Services;
pub async fn create_admin_room(services: &Services) -> Result<()> {
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;

Expand Down

0 comments on commit 5f12e94

Please sign in to comment.