mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Merge pull request #215 from teloxide/remove_warn
Remove `log::warn!` from throttle implementation
This commit is contained in:
commit
0f5fbfeb35
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…
Add table
Reference in a new issue