ruby: removed invalid assert in message comparitor
It is perfectly valid to compare the same message and the greater than operator should work correctly.
This commit is contained in:
parent
6b52f828cc
commit
03f2b8c23d
|
@ -121,7 +121,6 @@ operator>(const MsgPtr &lhs, const MsgPtr &rhs)
|
|||
const Message *r = rhs.get();
|
||||
|
||||
if (l->getLastEnqueueTime() == r->getLastEnqueueTime()) {
|
||||
assert(l->getMsgCounter() != r->getMsgCounter());
|
||||
return l->getMsgCounter() > r->getMsgCounter();
|
||||
}
|
||||
return l->getLastEnqueueTime() > r->getLastEnqueueTime();
|
||||
|
|
Loading…
Reference in a new issue