1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

WIP: LokidRpcClient

This commit is contained in:
Stephen Shelton 2020-05-18 10:06:52 -06:00 committed by Jeff Becker
parent a7dceed4eb
commit 78256e3228
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
2 changed files with 3 additions and 15 deletions

View file

@ -276,7 +276,9 @@ if(SUBMODULE_CHECK)
endif()
endif()
add_subdirectory(external/loki-mq EXCLUDE_FROM_ALL)
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.

View file

@ -14,17 +14,6 @@ namespace llarp
/// The LokidRpcClient uses loki-mq to talk to make API requests to lokid.
struct LokidRpcClient : public std::enable_shared_from_this<LokidRpcClient>
{
/// Not copyable or movable (because lokimq::LokiMQ is not copyable or movable).
/// Consider wrapping in a std::unique_ptr or std::shared_ptr if you need to pass this around.
LokidRpcClient(const LokidRpcClient&) = delete;
LokidRpcClient&
operator=(const LokidRpcClient&) = delete;
LokidRpcClient(LokidRpcClient&&) = delete;
LokidRpcClient&
operator=(LokidRpcClient&&) = delete;
/// Constructor
LokidRpcClient(LMQ_ptr lmq, AbstractRouter* r);
/// Connect to lokid async
@ -55,9 +44,6 @@ namespace llarp
std::string m_CurrentBlockHash;
AbstractRouter* const m_Router;
void
request();
};
} // namespace rpc