Removed lib structure
This commit is contained in:
+1
-6
@@ -1,7 +1,7 @@
|
||||
use std::{
|
||||
hash::{Hash, Hasher},
|
||||
io::{self, Read, Write},
|
||||
net::{SocketAddr, TcpStream},
|
||||
net::TcpStream,
|
||||
};
|
||||
|
||||
use anyhow::anyhow;
|
||||
@@ -346,11 +346,6 @@ impl Client {
|
||||
pub fn set_uuid(&mut self, uuid: &str) {
|
||||
self.1 = Some(uuid.to_string())
|
||||
}
|
||||
|
||||
#[deprecated]
|
||||
pub fn addr(&self) -> crate::Result<SocketAddr> {
|
||||
Ok(self.0.peer_addr().unwrap_or(self.0.local_addr()?))
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for Client {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::{
|
||||
Server,
|
||||
server::Server,
|
||||
types::message::{ClientMessage, WsMessage},
|
||||
utils::client::Client,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user