Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
315157973 committed Feb 20, 2024
1 parent 2a89499 commit 5eb2ba6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public boolean expireMessages(int messageTTLInSeconds) {
}
}

private boolean checkExpiryByLedgerClosureTime(ManagedCursor cursor, int messageTTLInSeconds) {
private void checkExpiryByLedgerClosureTime(ManagedCursor cursor, int messageTTLInSeconds) {
if (messageTTLInSeconds <= 0) {
return false;
return;
}
if (cursor instanceof ManagedCursorImpl managedCursor) {
ManagedLedgerImpl managedLedger = (ManagedLedgerImpl) managedCursor.getManagedLedger();
Expand All @@ -130,10 +130,8 @@ private boolean checkExpiryByLedgerClosureTime(ManagedCursor cursor, int message
} else {
findEntryComplete(position, null);
}
return true;
}
}
return false;
}

@Override
Expand Down

0 comments on commit 5eb2ba6

Please sign in to comment.