aboutsummaryrefslogtreecommitdiff
path: root/src/imap/session.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap/session.rs')
-rw-r--r--src/imap/session.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imap/session.rs b/src/imap/session.rs
index 72dd9d8..b7e2059 100644
--- a/src/imap/session.rs
+++ b/src/imap/session.rs
@@ -3,7 +3,7 @@ use boitalettres::errors::Error as BalError;
use boitalettres::proto::{Request, Response};
use futures::future::BoxFuture;
use futures::future::FutureExt;
-use imap_codec::types::response::{Response as ImapRes, Status};
+
use tokio::sync::mpsc::error::TrySendError;
use tokio::sync::{mpsc, oneshot};
@@ -32,7 +32,7 @@ impl Manager {
pub fn new(login_provider: ArcLoginProvider) -> Self {
let (tx, rx) = mpsc::channel(MAX_PIPELINED_COMMANDS);
tokio::spawn(async move {
- let mut instance = Instance::new(login_provider, rx);
+ let instance = Instance::new(login_provider, rx);
instance.start().await;
});
Self { tx }