diff --git a/src/io/rsm/rsm_client.hpp b/src/io/rsm/rsm_client.hpp index b60380b08..ce6781956 100644 --- a/src/io/rsm/rsm_client.hpp +++ b/src/io/rsm/rsm_client.hpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include "io/address.hpp" @@ -36,6 +37,21 @@ using memgraph::io::rsm::WriteRequest; using memgraph::io::rsm::WriteResponse; using memgraph::utils::BasicResult; +class AsyncRequestToken { + size_t id_; + + public: + AsyncRequestToken(size_t id) : id_(id) {} + size_t GetId() const { return id_; } +}; + +template +struct AsyncRequest { + Time start_time; + RequestT request; + ResponseFuture future; +}; + template class RsmClient { @@ -47,13 +63,10 @@ class RsmClient { /// State for single async read/write operations. In the future this could become a map /// of async operations that can be accessed via an ID etc... - std::optional