Update env conf
This commit is contained in:
@@ -38,8 +38,6 @@
|
|||||||
"ButtonExpirationMinutes": 2
|
"ButtonExpirationMinutes": 2
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"Workers": {
|
"WorkerBotManager": true,
|
||||||
"BotManager": true,
|
"WorkerBalancesTracking": true
|
||||||
"BalancesTracking": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -143,12 +143,12 @@ public static class ApiBootstrap
|
|||||||
|
|
||||||
private static IServiceCollection AddWorkers(this IServiceCollection services, IConfiguration configuration)
|
private static IServiceCollection AddWorkers(this IServiceCollection services, IConfiguration configuration)
|
||||||
{
|
{
|
||||||
if (configuration.GetValue<bool>("Workers:BotManager", false))
|
if (configuration.GetValue<bool>("WorkerBotManager", false))
|
||||||
{
|
{
|
||||||
services.AddHostedService<BotManagerWorker>();
|
services.AddHostedService<BotManagerWorker>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (configuration.GetValue<bool>("Workers:BalancesTracking", false))
|
if (configuration.GetValue<bool>("WorkerBalancesTracking", false))
|
||||||
{
|
{
|
||||||
services.AddHostedService<BalanceTrackingWorker>();
|
services.AddHostedService<BalanceTrackingWorker>();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user