Skip to content

Commit

Permalink
Update to the latest oatpp API.
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Jul 20, 2020
1 parent fb8b558 commit 01f78dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oatpp-mongo/driver/wire/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ v_io_size Connection::write(const Message& message) {
throw std::runtime_error("[oatpp::mongo::driver::wire::Connection::write()]: Error. Invalid message header.");
}

data::stream::BufferOutputStream stream(16, 16);
data::stream::BufferOutputStream stream(16);
message.header.writeToStream(&stream);

auto res1 = m_connection->writeExactSizeDataSimple(stream.getData(), stream.getCurrentPosition());
Expand Down

0 comments on commit 01f78dd

Please sign in to comment.