Compare commits

..

No commits in common. "c8626564d41d190d68c0371000f89dd0f35330f2" and "3b933501f0e46f0bd2d440ab2bfcafe672a7eccf" have entirely different histories.

2 changed files with 0 additions and 15 deletions

View file

@ -52,8 +52,6 @@ use rnex_core::rmc::structures::ranking::UploadCompetitionData;
use std::sync::{Arc, Weak}; use std::sync::{Arc, Weak};
use tokio::sync::{Mutex, RwLock}; use tokio::sync::{Mutex, RwLock};
use crate::rmc::structures::Error;
cfg_if! { cfg_if! {
if #[cfg(feature = "datastore")] { if #[cfg(feature = "datastore")] {
use rnex_core::rmc::protocols::datastore::{DataStore, RawDataStore, RawDataStoreInfo, RemoteDataStore}; use rnex_core::rmc::protocols::datastore::{DataStore, RawDataStore, RawDataStoreInfo, RemoteDataStore};
@ -511,15 +509,6 @@ impl MatchmakeExtension for User {
} }
impl Matchmake for User { impl Matchmake for User {
async fn find_by_single_id(&self, gid: u32) -> Result<(bool, Any), ErrorCode> {
let s = self.matchmake_manager.get_session(gid).await?;
let s = s.lock().await;
Ok((
true,
Any::new(&s.session).map_err(|_| ErrorCode::Custom_Unknown)?,
))
}
async fn unregister_gathering(&self, _gid: u32) -> Result<bool, ErrorCode> { async fn unregister_gathering(&self, _gid: u32) -> Result<bool, ErrorCode> {
Ok(true) Ok(true)
} }

View file

@ -4,14 +4,10 @@ use rnex_core::rmc::response::ErrorCode;
use rnex_core::PID; use rnex_core::PID;
use crate::rmc::structures::any::Any;
#[rmc_proto(21)] #[rmc_proto(21)]
pub trait Matchmake { pub trait Matchmake {
#[method_id(2)] #[method_id(2)]
async fn unregister_gathering(&self, gid: u32) -> Result<bool, ErrorCode>; async fn unregister_gathering(&self, gid: u32) -> Result<bool, ErrorCode>;
#[method_id(21)]
async fn find_by_single_id(&self, gid: u32) -> Result<(bool, Any), ErrorCode>;
#[method_id(41)] #[method_id(41)]
async fn get_session_urls(&self, gid: u32) -> Result<Vec<StationUrl>, ErrorCode>; async fn get_session_urls(&self, gid: u32) -> Result<Vec<StationUrl>, ErrorCode>;
#[method_id(42)] #[method_id(42)]