mirror of
https://github.com/matrix-construct/construct
synced 2024-06-25 21:38:18 +02:00
ircd:Ⓜ️:event::fetch: Simplify opts ctor; minor cleanup.
This commit is contained in:
parent
197478b531
commit
42d9f6dc79
|
@ -112,10 +112,9 @@ struct ircd::m::event::fetch::opts
|
|||
/// Whether to enforce the keys populated with values are tight to those
|
||||
/// keys specified here. This is naturally true for row queries anyway,
|
||||
/// but json queries may have more data than is being sought.
|
||||
bool selected_only {false};
|
||||
bool selected_only {true};
|
||||
|
||||
opts(const event::keys &, const db::gopts & = {});
|
||||
opts(const event::keys::selection &, const db::gopts & = {});
|
||||
opts(const db::gopts &, const event::keys::selection & = {});
|
||||
opts(const db::gopts &, const event::keys & = {});
|
||||
opts() = default;
|
||||
};
|
||||
|
|
|
@ -1689,19 +1689,10 @@ ircd::m::event::fetch::fetch(const event::idx &event_idx,
|
|||
//
|
||||
|
||||
ircd::m::event::fetch::opts::opts(const db::gopts &gopts,
|
||||
const event::keys::selection &selection)
|
||||
const event::keys &keys)
|
||||
:opts
|
||||
{
|
||||
selection, gopts
|
||||
}
|
||||
{
|
||||
}
|
||||
|
||||
ircd::m::event::fetch::opts::opts(const event::keys::selection &selection,
|
||||
const db::gopts &gopts)
|
||||
:opts
|
||||
{
|
||||
event::keys{selection}, gopts
|
||||
keys, gopts
|
||||
}
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue