coderzc commented on code in PR #18357:
URL: https://github.com/apache/pulsar/pull/18357#discussion_r1016153782
##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/collections/ConcurrentOpenLongPairRangeSet.java:
##########
@@ -220,6 +222,35 @@ public void forEach(RangeProcessor<T> action,
LongPairConsumer<? extends T> cons
});
}
+ @Override
+ public <O> void forEachWithRangeBoundMapper(LongPairConsumer<O>
rawRangeBoundMapper,
Review Comment:
There is a lot of duplication of code with `forEach`, can it be optimized?
--
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]