From 1ddc2b40aae4318db773b7bf2eafb8cd6f36f740 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 10 Dec 2019 09:04:33 -0500 Subject: [PATCH] another attempt at travis fix --- llarp/rpc/rpc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llarp/rpc/rpc.cpp b/llarp/rpc/rpc.cpp index a243b64ae..224ccf640 100644 --- a/llarp/rpc/rpc.cpp +++ b/llarp/rpc/rpc.cpp @@ -200,11 +200,11 @@ namespace llarp AsyncLokiPing() { LogInfo("Pinging Lokid"); - nlohmann::json::number_unsigned_t major(atoi(LLARP_VERSION_MAJ)); - nlohmann::json::number_unsigned_t minor(atoi(LLARP_VERSION_MIN)); - nlohmann::json::number_unsigned_t patch(atoi(LLARP_VERSION_PATCH)); - nlohmann::json params = { - {"version", nlohmann::json::array({major, minor, patch})}}; + nlohmann::json major(atoi(LLARP_VERSION_MAJ)); + nlohmann::json minor(atoi(LLARP_VERSION_MIN)); + nlohmann::json patch(atoi(LLARP_VERSION_PATCH)); + nlohmann::json version({major, minor, patch}); + nlohmann::json params({{"version", version}}); QueueRPC("lokinet_ping", std::move(params), util::memFn(&CallerImpl::NewLokinetPingConn, this)); }