Compare commits

..

1 Commits

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

View File

@ -149,11 +149,8 @@ pub struct Conn {
pub(crate) conn: UserConnTracker, pub(crate) conn: UserConnTracker,
} }
impl Conn { impl Connection {
/// Queue some data to be sent in this connection //pub fn send()
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);
} }