Skip to content

Commit

Permalink
build[release]: first release
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Sep 21, 2023
1 parent b3cb80c commit 7a934a7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
Expand Down
1 change: 0 additions & 1 deletion event/src/main/java/com/zfoo/event/manager/EventBus.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public static void post(IEvent event) {
switch (receiver.bus()) {
case CurrentThread -> doReceiver(receiver, event);
case AsyncThread -> execute(event.executorHash(), () -> doReceiver(receiver, event));
case VirtualThread -> Thread.ofVirtual().name("virtual-on" + clazz.getSimpleName()).start(() -> doReceiver(receiver, event));
}
}
}
Expand Down
1 change: 0 additions & 1 deletion net/src/main/java/com/zfoo/net/router/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ public void dispatchByTaskExecutorHash(int taskExecutorHash, PacketReceiverTask
switch (receiver.task()) {
case TaskBus -> TaskBus.execute(taskExecutorHash, packetReceiverTask);
case NettyIO -> atReceiver(packetReceiverTask);
case VirtualThread -> Thread.ofVirtual().name("virtual-at" + clazz.getSimpleName()).start(() -> atReceiver(packetReceiverTask));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ protected T initialValue() {
}

public T get() {
return Thread.currentThread().isVirtual() ? supplier.get() : fastThreadLocal.get();
return fastThreadLocal.get();
}
}

0 comments on commit 7a934a7

Please sign in to comment.