应vs提示修改

This commit is contained in:
陈国伟 2021-09-23 13:40:47 +08:00
parent f90e636d2d
commit 1a38ff81b8
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();