DeleteService should be runned too frequently

This commit is contained in:
2023-01-29 10:17:25 +03:00
parent acc619a21e
commit 1a94764334
+1 -1
View File
@@ -13,7 +13,7 @@ namespace Kruzya.TelegramBot.Core.AutoDelete;
public class DeleteService : AbstractTimedHostedService
{
private readonly ConcurrentBag<DeleteRequest> _deleteRequests;
protected override TimeSpan TimerPeriod => TimeSpan.FromSeconds(10);
protected override TimeSpan TimerPeriod => TimeSpan.FromSeconds(2);
public DeleteService(ILogger<DeleteService> logger, IBotInstance bot, ConcurrentBag<DeleteRequest> deleteRequests) : base(logger,
bot)