mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 14:17:56 +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) {
|
if (attachment == null) {
|
||||||
var session = task.getSession();
|
var session = task.getSession();
|
||||||
var uid = session.getUid();
|
var uid = session.getUid();
|
||||||
if (uid <= 0) {
|
if (uid > 0) {
|
||||||
execute((int) session.getSid(), task);
|
|
||||||
} else {
|
|
||||||
execute((int) uid, task);
|
execute((int) uid, task);
|
||||||
|
} else {
|
||||||
|
execute((int) session.getSid(), task);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
execute(attachment.taskExecutorHash(), task);
|
execute(attachment.taskExecutorHash(), task);
|
||||||
|
|||||||
Reference in new issue
Block a user