From 9abfa3eb2a9dc1c161459fd3bc01b901d53c8e6f Mon Sep 17 00:00:00 2001 From: qicosmos Date: Mon, 4 Dec 2023 11:34:14 +0800 Subject: [PATCH] remove read some, write some --- include/ylt/coro_io/coro_file.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ylt/coro_io/coro_file.hpp b/include/ylt/coro_io/coro_file.hpp index 2d47ccf48..99ac4d4b1 100644 --- a/include/ylt/coro_io/coro_file.hpp +++ b/include/ylt/coro_io/coro_file.hpp @@ -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(stream_file_.get()), asio::buffer(data, size)); if (ec == asio::error::eof) { @@ -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(stream_file_.get()), asio::buffer(data, size));