Fix Trace and Throttle adaptors to implement Requester

This commit is contained in:
Fedir Panasenko 2024-07-20 23:37:22 -04:00
parent 93782fba10
commit 00c6974788
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ use crate::{
/// Request returned by [`Throttling`](crate::adaptors::Throttle) methods.
#[must_use = "Requests are lazy and do nothing unless sent"]
#[derive(Clone)]
pub struct ThrottlingRequest<R: HasPayload> {
pub(super) request: Arc<R>,
pub(super) chat_id: fn(&R::Payload) -> ChatIdHash,

View file

@ -243,6 +243,7 @@ where
}
#[must_use = "Requests are lazy and do nothing unless sent"]
#[derive(Clone)]
pub struct TraceRequest<R> {
inner: R,
settings: Settings,