mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-08 12:15:21 +00:00
perf[uid]: optimize the judgment of uid
This commit is contained in:
1 parent
f61e1e5793
commit
02af867305
1 file changed
+3
-3
@@ -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