0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-25 21:38:18 +02:00

ircd:Ⓜ️:fetch: Declare lt operators above request set.

This commit is contained in:
Jason Volk 2019-08-13 23:35:07 -07:00
parent c95d1e56ee
commit 67f6a36b3f

View file

@ -14,6 +14,10 @@ namespace ircd::m::fetch
struct request; // m/fetch.h
struct evaltab;
static bool operator<(const request &a, const request &b) noexcept;
static bool operator<(const request &a, const string_view &b) noexcept;
static bool operator<(const string_view &a, const request &b) noexcept;
extern ctx::dock dock;
extern std::set<request, std::less<>> requests;
extern std::multimap<room::id, request *> rooms;
@ -27,10 +31,6 @@ namespace ircd::m::fetch
extern conf::item<bool> enable;
extern log::log log;
static bool operator<(const request &a, const request &b) noexcept;
static bool operator<(const request &a, const string_view &b) noexcept;
static bool operator<(const string_view &a, const request &b) noexcept;
static bool timedout(const request &, const time_t &now);
static string_view select_origin(request &, const string_view &);
static string_view select_random_origin(request &);