Add call to testing procedure

This commit is contained in:
Alex 2022-06-29 16:04:11 +02:00
parent d737e33b5a
commit 9ef069923b
Signed by: lx
GPG key ID: 0E496D15096376BE
2 changed files with 8 additions and 0 deletions

View file

@ -37,6 +37,9 @@ impl MailboxView {
/// has a satisfactory summary of the current mailbox's state.
/// These are the messages that are sent in response to a SELECT command.
pub async fn new(mailbox: Arc<Mailbox>) -> Result<(Self, Vec<Body>)> {
// TODO THIS IS JUST A TEST REMOVE LATER
mailbox.test().await?;
let state = mailbox.current_uid_index().await;
let new_view = Self {

View file

@ -71,6 +71,11 @@ impl Mailbox {
pub async fn fetch(&self) -> Result<()> {
unimplemented!()
}
/// Test procedure TODO WILL REMOVE THIS
pub async fn test(&self) -> Result<()> {
self.mbox.write().await.test().await
}
}
// ----