mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
DeleteService should be runned too frequently
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Kruzya.TelegramBot.Core.AutoDelete;
|
|||||||
public class DeleteService : AbstractTimedHostedService
|
public class DeleteService : AbstractTimedHostedService
|
||||||
{
|
{
|
||||||
private readonly ConcurrentBag<DeleteRequest> _deleteRequests;
|
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,
|
public DeleteService(ILogger<DeleteService> logger, IBotInstance bot, ConcurrentBag<DeleteRequest> deleteRequests) : base(logger,
|
||||||
bot)
|
bot)
|
||||||
|
|||||||
Reference in New Issue
Block a user