Skip to content

Commit

Permalink
fix(rules): add blocking annotation for rules error (backport #526) (#…
Browse files Browse the repository at this point in the history
…532)

fix(rules): add blocking annotation for rules error (#526)

(cherry picked from commit 0914b94)

Co-authored-by: Ming Yu Wang <[email protected]>
  • Loading branch information
mergify[bot] and mwangggg authored Jun 24, 2024
1 parent 700a42f commit 1956823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/cryostat/rules/RuleService.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void onStart(@Observes StartupEvent ev) {
Rule.<Rule>streamAll().filter(r -> r.enabled).forEach(this::applyRuleToMatchingTargets);
}

@ConsumeEvent(value = Target.TARGET_JVM_DISCOVERY)
@ConsumeEvent(value = Target.TARGET_JVM_DISCOVERY, blocking = true)
void onMessage(TargetDiscovery event) {
switch (event.kind()) {
case FOUND:
Expand Down

0 comments on commit 1956823

Please sign in to comment.