Skip to content

Commit daa5a21

Browse files
committed
prority small first out queue
1 parent 1d24f3a commit daa5a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform-core/src/main/java/com/flow/platform/core/queue/PriorityMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public Long getPriority() {
4848

4949
@Override
5050
public int compareTo(PriorityQueueItem o) {
51-
return o.getPriority().compareTo(getPriority());
51+
return getPriority().compareTo(o.getPriority());
5252
}
5353
}

0 commit comments

Comments
 (0)