Skip to content

Commit

Permalink
chore[field]: field visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Jan 6, 2024
1 parent 81e161d commit 0e4c66d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion event/src/main/java/com/zfoo/event/manager/EventBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public abstract class EventBus {
* EN: The size of the thread pool. Event's thread pool is often used to do time-consuming operations, so set it a little bigger
* CN: 线程池的大小. event的线程池经常用来做一些耗时的操作,所以要设置大一点
*/
public static final int EXECUTORS_SIZE = Runtime.getRuntime().availableProcessors() * 2;
private static final int EXECUTORS_SIZE = Runtime.getRuntime().availableProcessors() * 2;

private static final ExecutorService[] executors = new ExecutorService[EXECUTORS_SIZE];

Expand Down
2 changes: 1 addition & 1 deletion net/src/main/java/com/zfoo/net/task/TaskBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class TaskBus {

// EN: The size of the thread pool can also be specified through the provider thread configuration
// CN: 线程池的大小,也可以通过provider thread配置指定
public static final int EXECUTOR_SIZE;
private static final int EXECUTOR_SIZE;

/**
* EN: Use different thread pools to achieve isolation between thread pools without affecting each other
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
@Ignore
public class SignalBridgeTest {

private final int executorSize = EventBus.EXECUTORS_SIZE;
private final int executorSize = Runtime.getRuntime().availableProcessors() * 2;
private final int count = 100_0000;
private final int totalIndex = 10;

Expand Down

0 comments on commit 0e4c66d

Please sign in to comment.