Skip to content

Commit

Permalink
remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
uchenily committed May 17, 2024
1 parent 9972083 commit 0dfbb0d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions uvio/io/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@ class BufStream {

ssize_t ret{};
while (true) {
LOG_DEBUG("in read");
// TODO(x)
// if (r_stream_.r_remaining() + r_stream_.w_remaining()
if (r_stream_.w_remaining() < static_cast<int>(buf.size_bytes())) {
r_stream_.reset_data();
}

LOG_DEBUG("w_remaining: {}", r_stream_.w_remaining());
ret = co_await io_.read(r_stream_.w_slice());
LOG_DEBUG("io_.read() ret: {}", ret);
if (ret < 0) {
LOG_ERROR(uv_err_name(static_cast<int>(ret)));
co_return ret;
}
r_stream_.w_increase(ret);
Expand Down
2 changes: 0 additions & 2 deletions uvio/net/tcp_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class TcpStream {
uv_buf_t *buf) {
(void) suggested_size;
auto data = static_cast<ReadAwaiter *>(handle->data);
LOG_DEBUG("ReadAwaiter data->buf_.size(): {}",
data->buf_.size());
*buf
= uv_buf_init(data->buf_.data(), data->buf_.size());
},
Expand Down

0 comments on commit 0dfbb0d

Please sign in to comment.