0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/m_fetch: Fix interface implementations.

This commit is contained in:
Jason Volk 2019-07-20 17:01:34 -07:00
parent 3051e6da83
commit e589e89a2c

View file

@ -622,14 +622,14 @@ size_t
IRCD_MODULE_EXPORT IRCD_MODULE_EXPORT
ircd::m::fetch::count() ircd::m::fetch::count()
{ {
size_t ret(0); return requests.size();
for_each([&ret](const auto &request) }
{
++ret;
return true;
});
return ret; bool
IRCD_MODULE_EXPORT
ircd::m::fetch::exists(const m::event::id &event_id)
{
return requests.count(string_view{event_id});
} }
bool bool