fix: set long, because the value may be greater than int

This commit is contained in:
2025-02-01 21:19:56 +03:00
parent a67b72b7fb
commit 369901db78

View File

@ -73,7 +73,7 @@ public class ScheduleSyncService : IHostedService, IDisposable
delay = 1; delay = 1;
_cancellationTokenSource = new CancellationTokenSource(); _cancellationTokenSource = new CancellationTokenSource();
_timer = new Timer(ExecuteTask, null, (int)delay, Timeout.Infinite); _timer = new Timer(ExecuteTask, null, (long)delay, Timeout.Infinite);
} }
private async void ExecuteTask(object? state) private async void ExecuteTask(object? state)