fix issues
This commit is contained in:
parent
92ba5b1a75
commit
747e37409f
3 changed files with 32 additions and 32 deletions
|
|
@ -180,11 +180,14 @@ impl MatchmakeExtension for User {
|
|||
}
|
||||
|
||||
async fn update_progress_score(&self, gid: u32, progress: u8) -> Result<(), ErrorCode> {
|
||||
let session = self.matchmake_manager.get_session(gid).await?;
|
||||
#[cfg(feature = "v3-5-0")]
|
||||
{
|
||||
let session = self.matchmake_manager.get_session(gid).await?;
|
||||
|
||||
let mut session = session.lock().await;
|
||||
let mut session = session.lock().await;
|
||||
|
||||
session.session.progress_score = progress;
|
||||
session.session.progress_score = progress;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue