0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-29 15:28:20 +02:00

ircd:Ⓜ️ Add missing ADL-converted index(event) calls.

This commit is contained in:
Jason Volk 2018-05-11 02:06:33 -07:00
parent d9b5a7d26a
commit dc38da5566
2 changed files with 5 additions and 5 deletions

View file

@ -448,7 +448,7 @@ ircd::string_view
ircd::m::dbs::state_root(const mutable_buffer &out,
const id::event &event_id)
{
return state_root(out, event::fetch::index(event_id));
return state_root(out, index(event_id));
}
ircd::string_view
@ -480,7 +480,7 @@ ircd::m::dbs::state_root(const mutable_buffer &out,
const id::room &room_id,
const id::event &event_id)
{
return state_root(out, room_id, event::fetch::index(event_id));
return state_root(out, room_id, index(event_id));
}
ircd::string_view
@ -514,7 +514,7 @@ ircd::m::dbs::state_root(const mutable_buffer &out,
const id::event &event_id,
const uint64_t &depth)
{
return state_root(out, room_id, event::fetch::index(event_id), depth);
return state_root(out, room_id, index(event_id), depth);
}
ircd::string_view

View file

@ -2055,7 +2055,7 @@ console_cmd__event(opt &out, const string_view &line)
return true;
case hash("idx"):
out << m::event::fetch::index(event) << std::endl;
out << index(event) << std::endl;
return true;
case hash("content"):
@ -2132,7 +2132,7 @@ console_cmd__event__erase(opt &out, const string_view &line)
m::dbs::write_opts opts;
opts.op = db::op::DELETE;
opts.idx = m::event::fetch::index(event);
opts.idx = index(event);
m::dbs::write(txn, event, opts);
txn();