File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
Console . WriteLine ( $ "Worker Threads = { workerThreads } - Completion Port Threads = { completionPortThreads } ") ;
8
8
9
- // ThreadPool.SetMinThreads(500 , completionPortThreads);
9
+ ThreadPool . SetMinThreads ( workerThreads * 10 , completionPortThreads ) ;
10
10
11
11
ThreadPool . GetMinThreads ( out workerThreads , out completionPortThreads ) ;
12
12
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public class RedisClient
11
11
12
12
public RedisClient ( string connectionString )
13
13
{
14
- var connectionMultiplexer = ConnectionMultiplexer . Connect ( connectionString ) ;
14
+ var connectionMultiplexer = ConnectionMultiplexer . Connect ( connectionString , options => options . SocketManager = SocketManager . ThreadPool ) ;
15
15
_redisDatabase = connectionMultiplexer . GetDatabase ( ) ;
16
16
var multiplexers = new List < RedLockMultiplexer >
17
17
{
You can’t perform that action at this time.
0 commit comments