0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

ircd:Ⓜ️:sync: Add opts to sync::item.

This commit is contained in:
Jason Volk 2019-04-08 01:53:09 -07:00
parent 0f2dcf1706
commit a780609b76
2 changed files with 18 additions and 5 deletions

View file

@ -49,6 +49,8 @@ struct ircd::m::sync::item
conf::item<bool> stats_debug;
handle _polylog;
handle _linear;
json::strung feature;
json::object opts;
public:
string_view name() const;
@ -59,8 +61,9 @@ struct ircd::m::sync::item
bool polylog(data &);
item(std::string name,
handle polylog = {},
handle linear = {});
handle polylog = {},
handle linear = {},
const json::members & = {});
item(item &&) = delete;
item(const item &) = delete;

View file

@ -660,7 +660,8 @@ ircd::m::sync::item::instance_multimap::map
ircd::m::sync::item::item(std::string name,
handle polylog,
handle linear)
handle linear,
const json::members &feature)
:instance_multimap
{
std::move(name)
@ -688,12 +689,21 @@ ircd::m::sync::item::item(std::string name,
{
std::move(linear)
}
,feature
{
feature
}
,opts
{
this->feature
}
{
log::debug
{
log, "Registered sync item(%p) '%s'",
log, "Registered sync item(%p) '%s' (%zu features)",
this,
this->name()
this->name(),
opts.size(),
};
}