fix 移除tokensource
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user