Skip to content

Conversation

@gy2006
Copy link
Contributor

@gy2006 gy2006 commented Jan 1, 2018

No description provided.

@Override
public int compare(PriorityQueueItem o1, PriorityQueueItem o2) {
if (Objects.equals(o1.getPriority(), o2.getPriority())) {
return o2.getTimestamp().compareTo(o1.getTimestamp());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这一块比较有问题, 优先级是高的先出队,时间戳是小的先出队列

@yunheli yunheli merged commit 5a53dd4 into develop Jan 2, 2018
@yunheli yunheli deleted the hotfix/283 branch January 3, 2018 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants