mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
modules/m_fetch: Fix interface implementations.
This commit is contained in:
parent
3051e6da83
commit
e589e89a2c
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue