Skip to content

Commit

Permalink
Cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosvictor committed Jun 25, 2024
1 parent 9a9c35a commit 157de7c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,8 @@ private void recordMetricsForReplicator(AbstractReplicator replicator) {
if (replicator instanceof PersistentReplicator persistentReplicator) {
expiredCounter.record(persistentReplicator.getMessageExpiredCount(), attributes);
backlogCounter.record(persistentReplicator.getNumberOfEntriesInBacklog(), attributes);
}

if (stats instanceof NonPersistentReplicatorStats nonPersistentStats) {
droppedCounter.record(nonPersistentStats.getMsgDropCount(), attributes);
} else if (replicator instanceof NonPersistentReplicator nonPersistentReplicator) {
droppedCounter.record(nonPersistentReplicator.getStats().getMsgDropCount(), attributes);
}
}
}

0 comments on commit 157de7c

Please sign in to comment.