From e14b2b9fd0c73a29dc10827a3391fb71b0053038 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Fri, 24 Jul 2020 16:54:56 +0600 Subject: [PATCH] Fix compilation --- src/dispatching/update_listeners.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dispatching/update_listeners.rs b/src/dispatching/update_listeners.rs index 78a0001e..0c5f6f16 100644 --- a/src/dispatching/update_listeners.rs +++ b/src/dispatching/update_listeners.rs @@ -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: Stream> { @@ -123,7 +123,7 @@ impl UpdateListener for S where S: Stream> {} /// Returns a long polling update listener with `timeout` of 10 seconds. /// /// See also: [`polling`](polling). -pub fn polling_default(bot: Arc) -> impl UpdateListener { +pub fn polling_default(bot: Bot) -> impl UpdateListener { polling(bot, Some(Duration::from_secs(10)), None, None) }