Skip to content

Commit

Permalink
fix(vertx): Fix duplication of vertx events
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt committed Jul 15, 2023
1 parent 27ab435 commit b247909
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ void persistResults(StoreResults storeResults) {
} else if (result instanceof CodeAnalyzerResult.Success success) {
logger.atInfo().log("Analyzer %s succeeded for project %s", storeResults.analyzerName(), project.name());
}
vertx.eventBus().publish(MiningStartup.SERVICE_NAME, storeResults.analyzerName());
}

private AnalyzerStatus getAnalyzerStatus(CodeAnalyzerResult spoonResult, String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ void startup(@Observes StartupEvent event) {
vertx.deployVerticle(qodanaPeriodicMiner, options),
vertx.deployVerticle(spoonPeriodicMiner, options),
vertx.deployVerticle(persistence, options),
vertx.deployVerticle(projectSupplier, options),
vertx.deployVerticle(miningEventConsumer, options))
vertx.deployVerticle(projectSupplier, options)
// vertx.deployVerticle(miningEventConsumer, options)
)
.onFailure(Throwable::printStackTrace)
.onComplete(v -> System.out.println("All verticles deployed"))
.onSuccess(v -> startMining());
Expand Down

0 comments on commit b247909

Please sign in to comment.