fix warnings
This commit is contained in:
parent
70ced21e59
commit
a88f1898a5
24 changed files with 148 additions and 213 deletions
|
|
@ -1,13 +1,6 @@
|
|||
use cfg_if::cfg_if;
|
||||
use rnex_core::common::setup;
|
||||
use rnex_core::executables::common::new_simple_backend;
|
||||
use rnex_core::executables::friends_backend::start_friends_backend;
|
||||
use rnex_core::nex::matchmake::MatchmakeManager;
|
||||
use rnex_core::nex::remote_console::RemoteConsole;
|
||||
use rnex_core::nex::user::User;
|
||||
use rnex_core::rmc::protocols::{RemoteDisconnectable, RmcPureRemoteObject};
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::AtomicU32;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
|
|
|
|||
|
|
@ -8,15 +8,11 @@ use log::error;
|
|||
use tokio::net::TcpListener;
|
||||
|
||||
use crate::{
|
||||
executables::common::{OWN_IP_PRIVATE, SERVER_PORT, new_simple_backend},
|
||||
nex::friends_handler::{
|
||||
FriendsGuest, FriendsManager, FriendsUser, RemoteFriendRemote, RemoteFriendsUser,
|
||||
},
|
||||
executables::common::{OWN_IP_PRIVATE, SERVER_PORT},
|
||||
nex::friends_handler::{FriendsGuest, FriendsManager, FriendsUser, RemoteFriendRemote},
|
||||
reggie::UnitPacketRead,
|
||||
rmc::{
|
||||
protocols::{
|
||||
RmcCallable, RmcPureRemoteObject, friends::RemoteFriends, new_rmc_gateway_connection,
|
||||
},
|
||||
protocols::{RmcPureRemoteObject, new_rmc_gateway_connection},
|
||||
structures::RmcSerialize,
|
||||
},
|
||||
rnex_proxy_common::ConnectionInitData,
|
||||
|
|
@ -65,8 +61,8 @@ pub async fn start_friends_backend() {
|
|||
})
|
||||
});
|
||||
} else {
|
||||
new_rmc_gateway_connection(stream.into(), move |r| {
|
||||
Arc::new_cyclic(move |this| FriendsGuest {
|
||||
new_rmc_gateway_connection(stream.into(), move |_| {
|
||||
Arc::new_cyclic(move |_| FriendsGuest {
|
||||
fm,
|
||||
addr: c.prudpsock_addr,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
use cfg_if::cfg_if;
|
||||
|
||||
pub mod common;
|
||||
pub mod friends_backend;
|
||||
pub mod regular_backend;
|
||||
cfg_if! {
|
||||
if #[cfg(feature = "friends")]{
|
||||
pub mod friends_backend;
|
||||
} else {
|
||||
pub mod regular_backend;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue