From 7617a397e61e06be859f4916c0dbd113df9b1a62 Mon Sep 17 00:00:00 2001 From: xljiulang <366193849@qq.com> Date: Sun, 20 Jun 2021 15:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.Scanner/LookupProviders/GithubMetaProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FastGithub.Scanner/LookupProviders/GithubMetaProvider.cs b/FastGithub.Scanner/LookupProviders/GithubMetaProvider.cs index a54416b..94b0d5b 100644 --- a/FastGithub.Scanner/LookupProviders/GithubMetaProvider.cs +++ b/FastGithub.Scanner/LookupProviders/GithubMetaProvider.cs @@ -83,7 +83,7 @@ namespace FastGithub.Scanner.LookupProviders /// /// /// - private static async Task GetMetaAsync(HttpClient httpClient, Uri metaUri, CancellationToken cancellationToken) + private async Task GetMetaAsync(HttpClient httpClient, Uri metaUri, CancellationToken cancellationToken) { try { @@ -92,6 +92,7 @@ namespace FastGithub.Scanner.LookupProviders catch (Exception) { cancellationToken.ThrowIfCancellationRequested(); + this.logger.LogWarning($"当前网络无法从{META_URI}加载github维护的ip数据,{Environment.NewLine}本轮扫描暂时使用{metaUri}的副本数据"); return await httpClient.GetFromJsonAsync(metaUri, cancellationToken); } }