Skip to content

Commit

Permalink
test: remove deprecated code(boost::asio::ip::address::from_string ->…
Browse files Browse the repository at this point in the history
… boost::asio::ip::make_address)
  • Loading branch information
kibae committed Dec 31, 2024
1 parent e1f4569 commit 4c2d0a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pg_onnx/bridge/process_side/api_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ json api_request(
boost::asio::io_context io_context;
boost::asio::ip::tcp::socket socket(io_context);
// TODO: Use state->config_onnxruntime_server_hostname, state->config_onnxruntime_server_port for remote standalone
boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::address::from_string("127.0.0.1"), state->port);
boost::asio::ip::tcp::endpoint endpoint(boost::asio::ip::make_address("127.0.0.1"), state->port);

boost::system::error_code ec;
socket.connect(endpoint, ec);
Expand All @@ -47,7 +47,7 @@ json api_request(
}
}

struct Orts::transport::tcp::protocol_header res_header {};
struct Orts::transport::tcp::protocol_header res_header{};

std::string res_data;
while (true) {
Expand Down

0 comments on commit 4c2d0a3

Please sign in to comment.