diff options
Diffstat (limited to 'include/service/nostr_service_base.hpp')
-rw-r--r-- | include/service/nostr_service_base.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/service/nostr_service_base.hpp b/include/service/nostr_service_base.hpp index c3f8c99..f1b91d1 100644 --- a/include/service/nostr_service_base.hpp +++ b/include/service/nostr_service_base.hpp @@ -58,7 +58,8 @@ public: * @brief Queries all open relay connections for events matching the given set of filters, and * returns all stored matching events returned by the relays. * @param filters The filters to use for the query. - * @returns A vector of all events matching the filters from all open relay connections. + * @returns A std::future that will eventually hold a vector of all events matching the filters + * from all open relay connections. * @remark This method runs until the relays send an EOSE message, indicating they have no more * stored events matching the given filters. When the EOSE message is received, the method * will close the subscription for each relay and return the received events. @@ -66,7 +67,7 @@ public: * set on the filters in the range 1-64, inclusive. If no valid limit is given, it will be * defaulted to 16. */ - virtual std::vector<std::shared_ptr<data::Event>> queryRelays( + virtual std::future<std::vector<std::shared_ptr<data::Event>>> queryRelays( std::shared_ptr<data::Filters> filters) = 0; /** |