Skip to content

Commit

Permalink
Merge pull request #9 from dotnet-campus/t/bot/fix-codeformatting
Browse files Browse the repository at this point in the history
[Bot] Automated PR to fix formatting errors
  • Loading branch information
lindexi authored Jun 15, 2022
2 parents 9e025ef + 7cd5936 commit 138cb8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public async void Run()
Logger.RecordTime("GraphBuilded");
}

if(_shouldSetThreadPool)
if (_shouldSetThreadPool)
{
//启动期间存在大量的线程池调用(包含IO操作),而创建的多数线程在等待 IO 时都是不会被调度的
//设置更多的初始化线程数可以减少启动期间的线程调度等待
Expand Down Expand Up @@ -281,7 +281,7 @@ public async void Run()
Logger.ReportResult(Graph.OfType<IStartupTaskWrapper>().ToList()));
#pragma warning restore CS4014 // 由于此调用不会等待,因此在调用完成前将继续执行当前方法

if(_shouldSetThreadPool)
if (_shouldSetThreadPool)
{
ThreadPool.SetMinThreads(Math.Max(_workerThreads, 8), Math.Max(_completionPortThreads, 8));
}
Expand Down

0 comments on commit 138cb8d

Please sign in to comment.