Skip to content

Commit

Permalink
[patch] visibility (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
guysegal authored Dec 14, 2023
1 parent c1e08b5 commit a9237ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ private static Disposable createConsumer(MonitoringServer monitoringServer) {
.commitBatchSize(0)
.subscription(Pattern.compile(topicsRoutes.getTopicsPattern()))
.addAssignListener(partitions -> {
Monitor.assignedToPartition(partitions);
if (partitions.isEmpty()) {
return;
}
Monitor.assignedToPartition(partitions);
monitoringServer.consumerAssigned();
})
.addRevokeListener(Monitor::revokedFromPartition);
Expand Down

0 comments on commit a9237ee

Please sign in to comment.