diff --git a/src/main.rs b/src/main.rs index 722dfa8..334e0be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -189,6 +189,13 @@ impl TMClient { } fn process(self: &TMClient) { + // Check if there's any incoming requests to process(aka send) + match self.requests.try_recv() { + Ok(request) => println!("Got incoming request"), + Err(error) => {}, + } + + // Do per-call processing(currently just pretending to receive an empty notice) match self.notices.send(tm::Notice::default()) { Ok(_) => println!("Received notice"), Err(error) => println!("Recv error {}", error),