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:
Brad Beckmann 2015-08-01 12:59:47 -04:00
parent 6b52f828cc
commit 03f2b8c23d

View file

@ -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();