[change] remove EMBED_CFG macro
parent
2be7de7eb7
commit
3e61051247
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue