eolivelli commented on a change in pull request #10352:
URL: https://github.com/apache/pulsar/pull/10352#discussion_r622301098
##########
File path:
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
##########
@@ -412,25 +415,17 @@ public UnAckedMessageTracker getUnAckedMessageTracker() {
protected CompletableFuture<Message<T>> internalReceiveAsync() {
CompletableFutureCancellationHandler cancellationHandler = new
CompletableFutureCancellationHandler();
CompletableFuture<Message<T>> result =
cancellationHandler.createFuture();
- Message<T> message = null;
- lock.writeLock().lock();
Review comment:
we can drop the `lock` field, as we are not using it any more
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]