mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
WIP: LokidRpcClient
This commit is contained in:
parent
a7dceed4eb
commit
78256e3228
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue