Update based on comments
This commit is contained in:
parent
94dff28f5f
commit
7773af50d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue