Skip to content

Commit

Permalink
boost::asio::dynamic_buffer (#2152)
Browse files Browse the repository at this point in the history
Signed-off-by: turuslan <[email protected]>
  • Loading branch information
turuslan authored and xDimon committed Jul 12, 2024
1 parent bfb2f55 commit 18bf427
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/parachain/pvf/secure_mode_precheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <boost/process/v2/stdio.hpp>
#include <filesystem>
#include <iostream>
#include <libp2p/common/asio_buffer.hpp>
#include <libp2p/log/configurator.hpp>
#include <qtils/bytestr.hpp>
#include <scale/scale.hpp>
Expand Down Expand Up @@ -82,7 +81,7 @@ namespace kagome::parachain {
process_v2::process_stdio{{}, pipe, {}}};
Buffer output;
boost::system::error_code ec;
boost::asio::read(pipe, libp2p::asioBuffer(output), ec);
boost::asio::read(pipe, boost::asio::dynamic_buffer(output), ec);

if (process.wait() != 0) {
return SecureModeError{"Secure mode check failed"};
Expand Down

0 comments on commit 18bf427

Please sign in to comment.