Merge pull request #9 from dotnet-campus/t/bot/fix-codeformatting
Some checks failed
.NET Build / build (push) Has been cancelled
Code format check / dotnet-format (push) Has been cancelled

[Bot] Automated PR to fix formatting errors
This commit is contained in:
lindexi
2022-06-15 09:10:50 +08:00
committed by GitHub

View File

@@ -251,7 +251,7 @@ namespace dotnetCampus.ApplicationStartupManager
Logger.RecordTime("GraphBuilded");
}
if(_shouldSetThreadPool)
if (_shouldSetThreadPool)
{
//启动期间存在大量的线程池调用包含IO操作而创建的多数线程在等待 IO 时都是不会被调度的
//设置更多的初始化线程数可以减少启动期间的线程调度等待
@@ -281,7 +281,7 @@ namespace dotnetCampus.ApplicationStartupManager
Logger.ReportResult(Graph.OfType<IStartupTaskWrapper>().ToList()));
#pragma warning restore CS4014 // 由于此调用不会等待,因此在调用完成前将继续执行当前方法
if(_shouldSetThreadPool)
if (_shouldSetThreadPool)
{
ThreadPool.SetMinThreads(Math.Max(_workerThreads, 8), Math.Max(_completionPortThreads, 8));
}