Skip to content

Commit

Permalink
remove read some, write some
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Dec 4, 2023
1 parent e8c9cf8 commit 9abfa3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ylt/coro_io/coro_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class coro_file {
char* data, size_t size) {
assert(stream_file_);

auto [ec, read_size] = co_await coro_io::async_read_some(
auto [ec, read_size] = co_await coro_io::async_read(
*reinterpret_cast<asio::stream_file*>(stream_file_.get()),
asio::buffer(data, size));
if (ec == asio::error::eof) {
Expand All @@ -315,7 +315,7 @@ class coro_file {
size_t size) {
assert(stream_file_);

auto [ec, write_size] = co_await coro_io::async_write_some(
auto [ec, write_size] = co_await coro_io::async_write(
*reinterpret_cast<asio::stream_file*>(stream_file_.get()),
asio::buffer(data, size));

Expand Down

0 comments on commit 9abfa3e

Please sign in to comment.