Skip to content

Commit

Permalink
Fix queue ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Nov 28, 2023
1 parent e773b38 commit 887637a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raft.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class TRaft {
TMessageHolder<TMessage> Message;
std::shared_ptr<INode> ReplyTo;
bool operator< (const TWaiting& other) const {
return Index < other.Index;
return Index > other.Index;
}
};
std::priority_queue<TWaiting> waiting;
Expand Down

0 comments on commit 887637a

Please sign in to comment.