Skip to content

Commit

Permalink
refactor(h1): reduce noisy read_mem logs
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Feb 5, 2018
1 parent b7293ca commit 0c290c3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/proto/h1/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ where
B: Buf,
{
fn read_mem(&mut self, len: usize) -> Poll<Bytes, io::Error> {
trace!("Buffered.read_mem read_buf={}, wanted={}", self.read_buf.len(), len);
if !self.read_buf.is_empty() {
let n = ::std::cmp::min(len, self.read_buf.len());
trace!("Buffered.read_mem read_buf is not empty, slicing {}", n);
Ok(Async::Ready(self.read_buf.split_to(n).freeze()))
} else {
let n = try_ready!(self.read_from_io());
Expand Down

0 comments on commit 0c290c3

Please sign in to comment.