[change] remove EMBED_CFG macro

main
walon 2020-11-28 20:00:06 +08:00
parent 2be7de7eb7
commit 3e61051247
2 changed files with 4 additions and 4 deletions

View File

@ -7,12 +7,12 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;;NU1701</NoWarn>
<DefineConstants>TRACE;EMBED_CFG</DefineConstants>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;;NU1701</NoWarn>
<DefineConstants>TRACE;EMBED_CFG</DefineConstants>
<DefineConstants></DefineConstants>
</PropertyGroup>
<ItemGroup>

View File

@ -44,11 +44,11 @@ namespace Luban.Server
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
GenServer.Ins.Start(options.Port, ProtocolStub.Factories);
#if EMBED_CFG
GenServer.Ins.RegisterJob("cfg", new Luban.Job.Cfg.JobController());
#endif
GenServer.Ins.RegisterJob("proto", new Luban.Job.Proto.JobController());
GenServer.Ins.RegisterJob("db", new Luban.Job.Db.JobController());
int processorCount = System.Environment.ProcessorCount;
ThreadPool.SetMinThreads(Math.Max(4, processorCount), 5);
ThreadPool.SetMaxThreads(Math.Max(16, processorCount * 4), 10);