Added match to process incoming requests to tm client
parent
751a047bd8
commit
47d243ff84
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue