initial wack at lokimq

pull/1306/head
Jeff Becker 4 years ago
parent fd4b03f896
commit 9bfff61d08
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

1
.gitmodules vendored

@ -31,4 +31,3 @@
path = external/loki-mq
url = https://github.com/loki-project/loki-mq
branch = dev

@ -276,9 +276,6 @@ if(SUBMODULE_CHECK)
endif()
endif()
add_subdirectory(external/loki-mq)
include_directories(external/loki-mq)
include_directories(external/loki-mq/mapbox-variant/include)
# We only actually need pybind11 with WITH_HIVE, but if we don't load it here then something further
# down loads a broken PythonInterp that loads Python2, but Python2 headers are not C++17 compatible.

@ -225,6 +225,7 @@ endif()
target_link_libraries(liblokinet PUBLIC cxxopts lokinet-platform lokinet-util lokinet-cryptography lokimq)
target_link_libraries(liblokinet PRIVATE libunbound)
if(BUILD_SHARED_LIBS)
install(TARGETS lokinet-util lokinet-platform liblokinet LIBRARY DESTINATION lib)
if(WIN32)

@ -265,6 +265,7 @@ namespace llarp
const llarp_time_t _randomStartDelay;
std::shared_ptr<rpc::LokidRpcClient> m_lokidRpcClient;
std::string lokidRPCAddr = "ipc://loki.sock";
std::string lokidRPCUser;
std::string lokidRPCPassword;

@ -32,6 +32,7 @@ namespace llarp
return lokimq::LogLevel::trace;
}
}
LokidRpcClient::LokidRpcClient(LMQ_ptr lmq, AbstractRouter* r)
: m_lokiMQ(std::move(lmq)), m_Router(r)
{

@ -23,10 +23,6 @@ namespace llarp
void
ConnectAsync(std::string_view url);
/// blocking request identity key from lokid
std::optional<SecretKey>
ObtainIdentityKey();
private:
/// called when we have connected to lokid via lokimq
void

Loading…
Cancel
Save