This commit is contained in:
Temirkhan Myrzamadi 2021-05-08 19:02:35 +06:00
commit 3b7ca4dabd
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ where
.lock()
.await
.remove(&chat_id)
.map_or_else(|| Err(InMemStorageError::DialogueNotFound), |_| Ok(()))
.map_or(Err(InMemStorageError::DialogueNotFound), |_| Ok(()))
})
}

View file

@ -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>,