Skip to content

Commit

Permalink
Avoid the re-creation of the event loops
Browse files Browse the repository at this point in the history
It was missing a @BuildItem.
  • Loading branch information
cescoffier committed Nov 12, 2019
1 parent c4f1b99 commit 282e8a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import io.netty.channel.EventLoopGroup;
import io.quarkus.builder.item.SimpleBuildItem;

public class EventLoopSupplierBuildItem extends SimpleBuildItem {
public final class EventLoopSupplierBuildItem extends SimpleBuildItem {

private final Supplier<EventLoopGroup> mainSupplier;
private final Supplier<EventLoopGroup> bossSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ EventLoopCountBuildItem eventLoopCount(VertxCoreRecorder recorder, VertxConfigur
return new EventLoopCountBuildItem(recorder.calculateEventLoopThreads(vertxConfiguration));
}

@BuildStep
@Record(ExecutionTime.STATIC_INIT)
EventLoopSupplierBuildItem eventLoop(VertxCoreRecorder recorder) {
return new EventLoopSupplierBuildItem(recorder.mainSupplier(), recorder.bossSupplier());
Expand Down

0 comments on commit 282e8a5

Please sign in to comment.