0
0
Fork 0
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:
Jason Volk 2019-01-17 14:55:53 -08:00
parent 197478b531
commit 42d9f6dc79
2 changed files with 4 additions and 14 deletions

View file

@ -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;
};

View file

@ -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
}
{
}