aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe.rs
diff options
context:
space:
mode:
authorequal-l2 <eng.equall2@gmail.com>2020-07-20 23:39:30 +0000
committerequal-l2 <eng.equall2@gmail.com>2020-07-21 16:53:06 +0000
commit3bcc68127d3b5bd95c6f1d2af1e544fdc0ae4de5 (patch)
tree7b73615055631658a94a57c20b09431f5c1de8bc /src/pipe.rs
parentUse actix-web-httpauth for authentication middleware (diff)
downloadminiserve-3bcc68127d3b5bd95c6f1d2af1e544fdc0ae4de5.tar.gz
miniserve-3bcc68127d3b5bd95c6f1d2af1e544fdc0ae4de5.zip
Remove unrelevant comments
Diffstat (limited to 'src/pipe.rs')
-rw-r--r--src/pipe.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pipe.rs b/src/pipe.rs
index 92f7019..374a45f 100644
--- a/src/pipe.rs
+++ b/src/pipe.rs
@@ -9,8 +9,6 @@ use std::io::{Error, ErrorKind, Result, Write};
///
/// It uses an intermediate buffer to transfer packets.
pub struct Pipe {
- // Wrapping the sender in `Wait` makes it blocking, so we can implement blocking-style
- // io::Write over the async-style Sender.
dest: Sender<std::result::Result<Bytes, ()>>,
bytes: BytesMut,
}
@@ -27,8 +25,6 @@ impl Pipe {
impl Drop for Pipe {
fn drop(&mut self) {
- // This is the correct thing to do, but is not super important since the `Sink`
- // implementation of `Sender` just returns `Ok` without doing anything else.
let _ = block_on(self.dest.close());
}
}