dan-s1 commented on code in PR #8146: URL: https://github.com/apache/nifi/pull/8146#discussion_r1425443615
########## nifi-nar-bundles/nifi-amqp-bundle/nifi-amqp-processors/src/test/java/org/apache/nifi/amqp/processors/AMQPConsumerTest.java: ########## @@ -43,6 +43,7 @@ public class AMQPConsumerTest { private ComponentLog processorLog; + private static final int DEFAULT_PREFETCH_COUNT = 0; Review Comment: ```suggestion private static final int DEFAULT_PREFETCH_COUNT = 0; private ComponentLog processorLog; ``` ########## nifi-nar-bundles/nifi-amqp-bundle/nifi-amqp-processors/src/main/java/org/apache/nifi/amqp/processors/ConsumeAMQP.java: ########## @@ -301,7 +316,8 @@ protected synchronized AMQPConsumer createAMQPWorker(final ProcessContext contex try { final String queueName = context.getProperty(QUEUE).getValue(); final boolean autoAcknowledge = context.getProperty(AUTO_ACKNOWLEDGE).asBoolean(); - final AMQPConsumer amqpConsumer = new AMQPConsumer(connection, queueName, autoAcknowledge, getLogger()); + final AMQPConsumer amqpConsumer = new AMQPConsumer(connection, queueName, autoAcknowledge, + context.getProperty(PREFETCH_COUNT).asInteger(), getLogger()); Review Comment: ```suggestion final int prefetchCount = context.getProperty(PREFETCH_COUNT).asInteger(); final AMQPConsumer amqpConsumer = new AMQPConsumer(connection, queueName, autoAcknowledge, prefetchCount, getLogger()); ``` -- 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: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org