From c57a7611d2d4206a3109750ac0fe05e2816ec3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E8=8D=A3=E5=9B=BD?= Date: Mon, 23 May 2022 09:05:59 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=A4=A9=E6=B4=A5QAD=E5=9C=B0=E7=82=B9?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=BAT5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AsnBackgroundWorker/AsnBackgroundWorker.cs | 6 ------ .../src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.json | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/AsnBackgroundWorker/AsnBackgroundWorker.cs b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/AsnBackgroundWorker/AsnBackgroundWorker.cs index 143f0ec..cd7f48e 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/AsnBackgroundWorker/AsnBackgroundWorker.cs +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/AsnBackgroundWorker/AsnBackgroundWorker.cs @@ -72,12 +72,6 @@ public class AsnBackgroundWorker : AsyncPeriodicBackgroundWorkerBase var scpAsns = await scpAsnManager.GetUnreadAsnsAsync(site,maxUid, _options.Value.BatchSize); - if (scpAsns.Count <= 0) - { - Logger.LogInformation($"{site}: no new ASN"); - continue; - } - Logger.LogInformation($"{site}: {scpAsns.Count} ASNs were Found"); foreach (var asn in scpAsns) diff --git a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.json b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.json index c34d4c5..04cbcb2 100644 --- a/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.json +++ b/WebApiService/src/Win_in.Sfs.Scp.WebApi.HttpApi.Host/appsettings.json @@ -40,7 +40,7 @@ "RetryTimes": 3, "BatchSize": 10, "Receiver": "IACNA_ID", - "Sites": [ "T8", "T9" ] + "Sites": [ "T8", "T5" ] }, "AlwaysAllowAuthorization": true } \ No newline at end of file