mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️:event: Faster bail on event_idx=0 to m::get().
This commit is contained in:
parent
41cfb47de4
commit
9a446d6c42
1 changed files with 3 additions and 3 deletions
|
@ -1120,6 +1120,9 @@ ircd::m::get(std::nothrow_t,
|
|||
const string_view &key,
|
||||
const event::fetch::view_closure &closure)
|
||||
{
|
||||
if(!event_idx)
|
||||
return false;
|
||||
|
||||
const auto &column_idx
|
||||
{
|
||||
json::indexof<event>(key)
|
||||
|
@ -1130,9 +1133,6 @@ ircd::m::get(std::nothrow_t,
|
|||
dbs::event_column.at(column_idx)
|
||||
};
|
||||
|
||||
if(!event_idx)
|
||||
return false;
|
||||
|
||||
const string_view &column_key
|
||||
{
|
||||
byte_view<string_view>{event_idx}
|
||||
|
|
Loading…
Reference in a new issue