mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
ircd:Ⓜ️:homeserver: Run conf item update callbacks at construction for now.
This commit is contained in:
parent
56a8f6494d
commit
dcc0aae886
1 changed files with 17 additions and 0 deletions
|
@ -467,6 +467,23 @@ ircd::m::homeserver::conf::conf(const struct opts &opts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
for(const auto &[key, item] : ircd::conf::items) try
|
||||||
|
{
|
||||||
|
assert(item);
|
||||||
|
if(item->set_cb)
|
||||||
|
item->set_cb();
|
||||||
|
}
|
||||||
|
catch(const std::exception &e)
|
||||||
|
{
|
||||||
|
log::error
|
||||||
|
{
|
||||||
|
"Failed to initialize conf item '%s' :%s",
|
||||||
|
key,
|
||||||
|
e.what()
|
||||||
|
};
|
||||||
|
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
|
Loading…
Reference in a new issue