From 36bbc2138bceb0c80a306f8c225e340d6fbd5470 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 28 Jun 2022 10:49:28 +0200 Subject: cargo fmt + implement noop --- src/imap/session.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/imap/session.rs') diff --git a/src/imap/session.rs b/src/imap/session.rs index dfef0f4..d45a989 100644 --- a/src/imap/session.rs +++ b/src/imap/session.rs @@ -49,16 +49,10 @@ impl Manager { match self.tx.try_send(msg) { Ok(()) => (), Err(TrySendError::Full(_)) => { - return async { - Response::bad("Too fast! Send less pipelined requests.") - } - .boxed() + return async { Response::bad("Too fast! Send less pipelined requests.") }.boxed() } Err(TrySendError::Closed(_)) => { - return async { - Response::bad("Session task has existed.") - } - .boxed() + return async { Response::bad("Session task has existed.") }.boxed() } }; @@ -130,8 +124,11 @@ impl Instance { // Process result let res = match ctrl { Ok((res, tr)) => { - //@FIXME unwrap + //@FIXME remove unwrap self.state = self.state.apply(tr).unwrap(); + + //@FIXME enrich here the command with some status + Ok(res) } // Cast from anyhow::Error to Bal::Error -- cgit v1.2.3