cschneider commented on code in PR #184:
URL:
https://github.com/apache/sling-org-apache-sling-distribution-journal/pull/184#discussion_r2918944284
##########
src/main/java/org/apache/sling/distribution/journal/queue/impl/PubQueueProviderImpl.java:
##########
@@ -209,6 +226,10 @@ public OffsetQueue<DistributionQueueItem>
getOffsetQueue(String pubAgentName, lo
@Override
public int getMaxQueueSize(String pubAgentName) {
+ return cachedQueueSizes.computeIfAbsent(pubAgentName,
this::computeMaxQueueSize);
Review Comment:
Actually we could simply return 0 if absent.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]