mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-11-04 16:44:28 -05:00
More PeriodicTimer's instead of System.Threading.Timers
This commit is contained in:
@@ -52,7 +52,7 @@ public class PatreonRewardsService : INService, IReadyExecutor
|
||||
if (_client.ShardId != 0)
|
||||
return;
|
||||
|
||||
var t = new PeriodicTimer(Interval);
|
||||
using var t = new PeriodicTimer(Interval);
|
||||
do
|
||||
{
|
||||
try
|
||||
|
||||
@@ -30,7 +30,7 @@ public class ConverterService : INService, IReadyExecutor
|
||||
if (_client.ShardId != 0)
|
||||
return;
|
||||
|
||||
var timer = new PeriodicTimer(_updateInterval);
|
||||
using var timer = new PeriodicTimer(_updateInterval);
|
||||
do
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user