fix 调整到3秒时效
This commit is contained in:
@@ -23,7 +23,7 @@ public class HealthCheckService : IHealthCheckService
|
||||
|
||||
public async Task DoHealthCheckAsync()
|
||||
{
|
||||
var cancellationTokenSource = new CancellationTokenSource(1000);
|
||||
var cancellationTokenSource = new CancellationTokenSource(3000);
|
||||
var tcpClient = new TcpClient();
|
||||
|
||||
try
|
||||
@@ -61,8 +61,6 @@ public class HealthCheckService : IHealthCheckService
|
||||
{
|
||||
_logger.LogError("fail cause :{reason}", ex.Message);
|
||||
_isOffline = true;
|
||||
|
||||
await Task.Delay(5000);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user