Update client_profile.rs

set the channels t use crossbeam_channels
This commit is contained in:
michael-bailey 2020-09-27 08:42:29 +01:00
parent 776d4b733c
commit 0cc1d4a1ef
1 changed files with 3 additions and 4 deletions

View File

@ -11,14 +11,13 @@ use std::{
io,
};
use crossbeam::{
use crossbeam_channel::{
Sender,
Receiver,
TryRecvError,
unbounded
};
use openssl::rsa::Rsa;
use log::info;
use crate::{
@ -129,7 +128,7 @@ impl Client {
}
},
Err(_) => {
// no data was read
// No data was read
},
}
@ -172,7 +171,7 @@ impl Client {
}
},
/*no data available yet*/
/*No data available yet*/
Err(TryRecvError::Empty) => {},
_ => {},
}