Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
Reassign message serials on pending message queue
  • Loading branch information
ikbalkaya committed Jan 18, 2023
1 parent 41ca405 commit 34a6826
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,11 @@ public synchronized void reset(long oldMsgSerial, ErrorInfo err) {

public void resetStartSerial(int from) {
startSerial = from;
//also reassign new serials to queued messages
for (int i = 0; i < queuedMessages.size(); i++) {
final QueuedMessage queuedMessage = queuedMessages.get(i);
queuedMessage.msg.msgSerial = (long) (i + from);
}
}
}

Expand Down

0 comments on commit 34a6826

Please sign in to comment.