From 1a38ff81b8f55b356e997038e0fe27d3a1dd0675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Thu, 23 Sep 2021 13:40:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94vs=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.DomainResolve/DomainResolver.cs | 2 +- FastGithub.HttpServer/RequestLoggingMilldeware.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FastGithub.DomainResolve/DomainResolver.cs b/FastGithub.DomainResolve/DomainResolver.cs index 3d93b9c..170600b 100644 --- a/FastGithub.DomainResolve/DomainResolver.cs +++ b/FastGithub.DomainResolve/DomainResolver.cs @@ -82,7 +82,7 @@ namespace FastGithub.DomainResolve var semaphore = this.semaphoreSlims.GetOrAdd(domain, _ => new SemaphoreSlim(1, 1)); try { - await semaphore.WaitAsync(); + await semaphore.WaitAsync(CancellationToken.None); return await this.ResolveCoreAsync(domain, cancellationToken); } finally diff --git a/FastGithub.HttpServer/RequestLoggingMilldeware.cs b/FastGithub.HttpServer/RequestLoggingMilldeware.cs index 2f416c7..5694bad 100644 --- a/FastGithub.HttpServer/RequestLoggingMilldeware.cs +++ b/FastGithub.HttpServer/RequestLoggingMilldeware.cs @@ -95,7 +95,7 @@ namespace FastGithub.HttpServer while (ex != null) { var type = ex.GetType(); - builder.Append(type.Namespace).Append(".").Append(type.Name).Append(": ").AppendLine(ex.Message); + builder.Append(type.Namespace).Append('.').Append(type.Name).Append(": ").AppendLine(ex.Message); ex = ex.InnerException; } return builder.ToString();