From 5ca68188b705251761d043113f692b1aa9d1d438 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Fri, 27 Sep 2024 14:57:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A7=BB=E9=99=A4tokensource?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Middle/Services/Implements/HealthcheckService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Middle/Services/Implements/HealthcheckService.cs b/Src/Dlhis.Middle/Services/Implements/HealthcheckService.cs index 7e4e22b6..20071903 100644 --- a/Src/Dlhis.Middle/Services/Implements/HealthcheckService.cs +++ b/Src/Dlhis.Middle/Services/Implements/HealthcheckService.cs @@ -54,14 +54,15 @@ public class HealthCheckService : IHealthCheckService _successRetry = 0; _isOffline = true; _logger.LogDebug("current is {status}", "unavailable"); - await Task.Delay(500, cancellationTokenSource.Token); + await Task.Delay(500); } } catch (Exception ex) { _logger.LogError("fail cause :{reason}", ex.Message); _isOffline = true; - await Task.Delay(5000, cancellationTokenSource.Token); + + await Task.Delay(5000); } } } \ No newline at end of file