Remove debug log
This commit is contained in:
parent
2baa274de4
commit
ca09821cbc
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tapir-cwtch"
|
name = "tapir-cwtch"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
authors = ["Sarah Jamie Lewis <sarah@openprivacy.ca>"]
|
authors = ["Sarah Jamie Lewis <sarah@openprivacy.ca>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -119,7 +119,7 @@ impl<Direction> ConnectionInterface for Connection<Direction> {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
// TODO why did I decide to use varints here?!?!
|
// TODO why did I decide to use varints here?!?!
|
||||||
let len = u16::decode_var(&msg[0..2]).unwrap().0 as usize;
|
let len = u16::decode_var(&msg[0..2]).unwrap().0 as usize;
|
||||||
println!("{} [{}]", len, String::from_utf8(msg[2..len + 2].to_vec()).unwrap());
|
// println!("{} [{}]", len, String::from_utf8(msg[2..len + 2].to_vec()).unwrap());
|
||||||
return Ok(msg[2..len + 2].to_vec());
|
return Ok(msg[2..len + 2].to_vec());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue