increased delay to 2500, renamed method

This commit is contained in:
Toastie (DCS Team) 2024-08-30 18:50:01 +12:00
parent 22d03005a1
commit f70ff5c053
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -62,9 +62,9 @@ public partial class Administration
if (!response)
return;
for (var i = startShardId; i < _creds.GetCreds().TotalShards; i++)
for (var shardId = startShardId; shardId < _creds.GetCreds().TotalShards; shardId++)
{
await _svc.LeaveUnkeptServers(i);
await _svc.StartLeavingUnkeptServers(shardId);
await Task.Delay(2250 * 1000);
}

View file

@ -237,7 +237,7 @@ public sealed class CleanupService : ICleanupService, IReadyExecutor, IEService
return await table.CountAsync();
}
public async Task LeaveUnkeptServers(int shardId)
public async Task StartLeavingUnkeptServers(int shardId)
=> await _pubSub.Pub(_keepTriggerKey, shardId);
private ValueTask OnKeepReport(KeepReport report)

View file

@ -5,5 +5,5 @@ public interface ICleanupService
Task<KeepResult?> DeleteMissingGuildDataAsync();
Task<bool> KeepGuild(ulong guildId);
Task<int> GetKeptGuildCount();
Task LeaveUnkeptServers(int shardId);
Task StartLeavingUnkeptServers(int shardId);
}