Update based on comments

This commit is contained in:
Meher Mankikar 2023-08-03 10:35:58 -07:00
parent 94dff28f5f
commit 7773af50d0

View file

@ -183,7 +183,7 @@ public class TestConsumer {
this.consumerFuture = consumerExecutor.schedule(scheduler, 0, TimeUnit.SECONDS);
}
public void stopProducer() {
private void stopProducer() {
log.info("Cancelling producer and shutting down executor.");
if (producerFuture != null) {
producerFuture.cancel(false);