mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-20 14:24:50 +00:00
perf[uid]: optimize the judgment of uid
This commit is contained in:
@@ -118,10 +118,10 @@ public final class TaskBus {
|
||||
if (attachment == null) {
|
||||
var session = task.getSession();
|
||||
var uid = session.getUid();
|
||||
if (uid <= 0) {
|
||||
execute((int) session.getSid(), task);
|
||||
} else {
|
||||
if (uid > 0) {
|
||||
execute((int) uid, task);
|
||||
} else {
|
||||
execute((int) session.getSid(), task);
|
||||
}
|
||||
} else {
|
||||
execute(attachment.taskExecutorHash(), task);
|
||||
|
||||
Reference in New Issue
Block a user