Remove log::warn! from throttle implementation

"Blocking on queue" literally means "nothing is happening, waiting until
something happens". There is no reason to warn users about that.
This commit is contained in:
Maybe Waffle 2022-05-16 21:38:38 +04:00
parent a951d4d544
commit 799fa6330d

View file

@ -359,7 +359,8 @@ async fn freeze(
async fn read_from_rx<T>(rx: &mut mpsc::Receiver<T>, queue: &mut Vec<T>, rx_is_closed: &mut bool) {
if queue.is_empty() {
log::warn!("A-blocking on queue");
log::debug!("blocking on queue");
match rx.recv().await {
Some(req) => queue.push(req),
None => *rx_is_closed = true,