mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix compilation
This commit is contained in:
parent
5db72a26a2
commit
e14b2b9fd0
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ use crate::{
|
|||
RequestError,
|
||||
};
|
||||
|
||||
use std::{convert::TryInto, sync::Arc, time::Duration};
|
||||
use std::{convert::TryInto, time::Duration};
|
||||
|
||||
/// A generic update listener.
|
||||
pub trait UpdateListener<E>: Stream<Item = Result<Update, E>> {
|
||||
|
@ -123,7 +123,7 @@ impl<S, E> UpdateListener<E> for S where S: Stream<Item = Result<Update, E>> {}
|
|||
/// Returns a long polling update listener with `timeout` of 10 seconds.
|
||||
///
|
||||
/// See also: [`polling`](polling).
|
||||
pub fn polling_default(bot: Arc<Bot>) -> impl UpdateListener<RequestError> {
|
||||
pub fn polling_default(bot: Bot) -> impl UpdateListener<RequestError> {
|
||||
polling(bot, Some(Duration::from_secs(10)), None, None)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue