Add call to testing procedure
This commit is contained in:
parent
d737e33b5a
commit
9ef069923b
2 changed files with 8 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
// ----
|
||||
|
|
Loading…
Reference in a new issue