aboutsummaryrefslogtreecommitdiff
path: root/include/nostr.hpp
diff options
context:
space:
mode:
authorLibravatar dwigton <daniel@stonecottageweb.com>2024-07-16 07:14:08 -0500
committerLibravatar GitHub <noreply@github.com>2024-07-16 07:14:08 -0500
commit576ca6100d8aa7c62c9107d857575325425e7e6e (patch)
tree041ea8ca06a26fb6a25bcb30c9964cbceed69e74 /include/nostr.hpp
parentdbf4df01cd58957b23ef2ef8316e31d2524246a8 (diff)
parent1e6bf40d457def0faa12e3f6cf58be0e9c69e6f5 (diff)
Merge pull request #12 from dwigton/masterHEADmaster
Resolution to issue 9
Diffstat (limited to 'include/nostr.hpp')
-rw-r--r--include/nostr.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/nostr.hpp b/include/nostr.hpp
index b2cdfc5..e699f21 100644
--- a/include/nostr.hpp
+++ b/include/nostr.hpp
@@ -177,7 +177,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.
@@ -185,7 +186,7 @@ public:
* set on the filters in the range 1-64, inclusive. If no valid limit is given, it will be
* defaulted to 16.
*/
- std::vector<std::shared_ptr<Event>> queryRelays(std::shared_ptr<Filters> filters);
+ std::future<std::vector<std::shared_ptr<Event>>> queryRelays(std::shared_ptr<Filters> filters);
/**
* @brief Queries all open relay connections for events matching the given set of filters.