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