mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
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:
parent
a951d4d544
commit
799fa6330d
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue