Make the service context static
This commit is contained in:
parent
5e441675e5
commit
fc20a118c2
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ struct ServiceContextBuilder {
|
||||||
static constexpr auto Run() -> void {
|
static constexpr auto Run() -> void {
|
||||||
[]<utempl::ConstexprString... names, typename... TTs, Options... Options>
|
[]<utempl::ConstexprString... names, typename... TTs, Options... Options>
|
||||||
(utempl::TypeList<ComponentConfig<names, TTs, Options>...>) {
|
(utempl::TypeList<ComponentConfig<names, TTs, Options>...>) {
|
||||||
ServiceContext<config, utempl::Tuple{names...}, utempl::Tuple{Options...}, TTs...> context;
|
static ServiceContext<config, utempl::Tuple{names...}, utempl::Tuple{Options...}, TTs...> context;
|
||||||
context.Run();
|
context.Run();
|
||||||
for(;;) {
|
for(;;) {
|
||||||
std::this_thread::sleep_for(std::chrono::minutes(1));
|
std::this_thread::sleep_for(std::chrono::minutes(1));
|
||||||
|
|
Loading…
Reference in a new issue