Skip to content
Snippets Groups Projects
Commit b8d8f549 authored by Sören Henning's avatar Sören Henning
Browse files

Minor code clean up

parent 0179af6a
No related branches found
No related tags found
No related merge requests found
......@@ -100,11 +100,8 @@ public abstract class AbstractWorkloadGenerator<T>
entities.forEach(entity -> {
final T message = entity.generateMessage();
final long initialDelay = random.nextInt(periodMs);
final Runnable task = () -> {
this.transport.transport(message);
};
this.executor.scheduleAtFixedRate(task, initialDelay,
periodMs, TimeUnit.MILLISECONDS);
final Runnable task = () -> this.transport.transport(message);
this.executor.scheduleAtFixedRate(task, initialDelay, periodMs, TimeUnit.MILLISECONDS);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment