From 47d243ff8419f0361277ba8d6961390d811eeb9f Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Thu, 18 Jan 2024 20:40:17 -0700 Subject: [PATCH] Added match to process incoming requests to tm client --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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),