mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd:Ⓜ️:fetch: Remove cruft.
This commit is contained in:
parent
4c0e7c220b
commit
53e7fe3fef
4 changed files with 0 additions and 61 deletions
|
@ -28,7 +28,6 @@ namespace ircd::m::fetch
|
|||
bool cancel(request &);
|
||||
bool start(const m::room::id &, const m::event::id &);
|
||||
bool prefetch(const m::room::id &, const m::event::id &);
|
||||
bool synchronize(const m::room &);
|
||||
|
||||
// Composed operations
|
||||
void auth_chain(const room &, const net::hostport &);
|
||||
|
|
13
ircd/m.cc
13
ircd/m.cc
|
@ -534,19 +534,6 @@ ircd::m::fetch::auth_chain(const room &r,
|
|||
call(r, hp);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::fetch::synchronize(const m::room &room)
|
||||
{
|
||||
using prototype = bool (const m::room &);
|
||||
|
||||
static mods::import<prototype> call
|
||||
{
|
||||
"m_fetch", "ircd::m::fetch::synchronize"
|
||||
};
|
||||
|
||||
return call(room);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::fetch::prefetch(const m::room::id &room_id,
|
||||
const m::event::id &event_id)
|
||||
|
|
|
@ -13388,39 +13388,6 @@ console_cmd__fetch(opt &out, const string_view &line)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__fetch__sync(opt &out, const string_view &line)
|
||||
{
|
||||
const params param{line, " ",
|
||||
{
|
||||
"room_id", "event_id"
|
||||
}};
|
||||
|
||||
const auto room_id
|
||||
{
|
||||
m::room_id(param.at("room_id"))
|
||||
};
|
||||
|
||||
const string_view &event_id
|
||||
{
|
||||
param["event_id"]
|
||||
};
|
||||
|
||||
const m::room room
|
||||
{
|
||||
room_id, event_id
|
||||
};
|
||||
|
||||
if(!m::fetch::synchronize(room))
|
||||
{
|
||||
out << "failed to start." << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
out << "done." << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// synchron
|
||||
//
|
||||
|
|
|
@ -346,20 +346,6 @@ namespace ircd::m::fetch
|
|||
static void handle_state_ids(const m::room &, const m::feds::result &);
|
||||
}
|
||||
|
||||
bool
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::fetch::synchronize(const m::room &room)
|
||||
{
|
||||
m::feds::opts opts;
|
||||
opts.op = m::feds::op::head;
|
||||
opts.room_id = room.room_id;
|
||||
opts.event_id = room.event_id;
|
||||
opts.nothrow_closure = true;
|
||||
opts.closure_errors = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::fetch::state_ids(const room &room)
|
||||
|
|
Loading…
Add table
Reference in a new issue