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 Sep 29, 2020
1 parent 386fe98 commit 3d2a2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/oatpp-mongo/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#include "oatpp-mongo/bson/Utils.hpp"

#include "oatpp/network/client/SimpleTCPConnectionProvider.hpp"
#include "oatpp/network/tcp/client/ConnectionProvider.hpp"
#include "oatpp/core/data/stream/BufferStream.hpp"

namespace {
Expand Down Expand Up @@ -157,7 +157,7 @@ void testMsg() {

oatpp::mongo::bson::mapping::ObjectMapper objectMapper;

auto connectionProvider = oatpp::network::client::SimpleTCPConnectionProvider::createShared("localhost", 27017);
auto connectionProvider = oatpp::network::tcp::client::ConnectionProvider::createShared({"localhost", 27017});
auto connection = connectionProvider->get();

oatpp::mongo::driver::wire::Connection dbConnection(connection);
Expand Down

0 comments on commit 3d2a2af

Please sign in to comment.