mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-11 04:21:12 +01:00
Merge
This commit is contained in:
commit
3b7ca4dabd
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ where
|
|||
.lock()
|
||||
.await
|
||||
.remove(&chat_id)
|
||||
.map_or_else(|| Err(InMemStorageError::DialogueNotFound), |_| Ok(()))
|
||||
.map_or(Err(InMemStorageError::DialogueNotFound), |_| Ok(()))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ pub trait Storage<D> {
|
|||
where
|
||||
D: Send + 'static;
|
||||
|
||||
/// Extracts a dialogue indexed by `chat_id`.
|
||||
/// Returns the dialogue indexed by `chat_id`.
|
||||
#[must_use = "Futures are lazy and do nothing unless polled with .await"]
|
||||
fn get_dialogue(
|
||||
self: Arc<Self>,
|
||||
|
|
Loading…
Reference in a new issue