Compare commits

..

1 Commits

Author SHA1 Message Date
b49ede334f
Give the user a tracker for conn interactions
Signed-off-by: Luca Fulchir <luca.fulchir@runesauth.com>
2023-06-20 20:56:34 +02:00
2 changed files with 6 additions and 3 deletions

View File

@ -149,8 +149,11 @@ pub struct Conn {
pub(crate) conn: UserConnTracker, pub(crate) conn: UserConnTracker,
} }
impl Connection { impl Conn {
//pub fn send() /// Queue some data to be sent in this connection
pub fn send(&mut self, stream: stream::ID, _data: Vec<u8>) {
todo!()
}
} }
/// A single connection and its data /// A single connection and its data

View File

@ -88,7 +88,7 @@ async fn test_connection_dirsync() {
.connect_resolved(dnssec_record, &test_domain, auth::SERVICEID_AUTH) .connect_resolved(dnssec_record, &test_domain, auth::SERVICEID_AUTH)
.await .await
{ {
Ok(()) => {} Ok((_, _)) => {}
Err(e) => { Err(e) => {
assert!(false, "Err on client connection: {:?}", e); assert!(false, "Err on client connection: {:?}", e);
} }